我有一个运行 Linux 的嵌入式系统。我需要安装一些软件,特别是uucp
包含命令的软件包cu
。这确实是我所需要的。
目前,我只有通过 COM 端口对系统进行 root 访问。因此只有命令行。系统可以访问互联网。
问题是我不是一位经验丰富的 Linux 用户,并且面临以下困难:
- 我找不到任何我知道的包管理器(没有 apt-get、没有 yum、没有 rpm)
- dpkg 命令不起作用(编辑 2:dpkg 未安装)
- 我尝试
*.tar.gz
使用 下载软件包wget
,解压并执行./configure
,但运行时make
,我得到的是bash: make: command not found
。因此,我认为缺少 binutils 或其他重要的东西,我将无法从源代码安装它。
有人能建议解决方法吗?我遗漏了什么吗?
编辑 1:输出compgen -c
(应 Matthew Williams 的要求)
if
then
else
elif
fi
case
esac
for
select
while
until
do
done
in
function
time
{
}
!
[[
]]
.
:
[
alias
bind
break
builtin
caller
cd
command
compgen
complete
continue
declare
dirs
echo
enable
eval
exec
exit
export
false
fc
getopts
hash
help
history
kill
let
local
logout
popd
printf
pushd
pwd
read
readonly
return
set
shift
shopt
source
test
times
trap
true
type
typeset
ulimit
umask
unalias
unset
wait
pure-ftpwho
pure-uploadscript
pure-mrtginfo
pure-authd
pure-ftpd
pure-quotacheck
swapon
depmod
ebtables-save
halt
agetty
bootlogd
udevsettle
pcmcia-check-broken-cis
rtmon
telinit
reboot
ss
nameif
fsck
ifstat
mkfs.bfs
routel
ctstat
rtacct
ifrename
e2label
dhclient-script
tune2fs
cfdisk
lnstat
resize2fs
rtstat
ifdown
pivot_root
slattach
ip
losetup
fsck.minix
modprobe
ctrlaltdel
mkfs.nilfs2
mkswap
mkfs
fdisk
iwgetid
udevtrigger
e2image
tc
route
nstat
blockdev
fsck.ext3
getpcaps
pcmcia-socket-startup
ifcfg
mount.nilfs2
athdebug
dumpe2fs
ebtables
udevd
insmod
findfs
udevcontrol
capsh
shutdown
iwevent
fsck.cramfs
mkfs.ext2
80211stats
ebtables-restore
mii-tool
rmmod
plipconfig
athchans
80211debug
mke2fs
rtpr
pccardctl
debugfs
wlanconfig
blkid
scsi_id
sysctl
genl
hwclock
iwpriv
rarp
routef
fsck.ext2
madwifi-unload
swapoff
mkfs.ext3
e2fsck
lspcmcia
iwconfig
modinfo
mkfs.cramfs
generate-modprobe.conf
ifup
athctrl
mkfs.minix
logsave
athkey
athstats
nilfs_cleanerd
ldconfig
init
elvtune
killall5
insmod.static
ifconfig
umount.nilfs2
poweroff
iwlist
runlevel
arp
sfdisk
iwspy
sulogin
badblocks
nologin
pure-statsdecode
pure-pw
pure-pwconvert
chmod
gzexe
passwd
qemu
sync
rdisc
setfont
mountpoint
tar
date
test
netstat
install
false
egrep
less
lessecho
cli
mkdir
qemu-img
sed
df
dnsdomainname
ps
bzip2
head
basename
grep
cp
find
bzcat
ls
readlink
tftpd
[
openvt
bunzip2
sleep
mknod
xmlwf
ypdomainname
su
qemu-io
login
lsmod
clockdiff
rmdir
logger
gzip
fuser
chown
killall
uname
rm
mv
fgrep
pidof
rarpd
true
gunzip
stty
lesskey
zcat
qemu-nbd
oldfuser
nisdomainname
touch
kbd_mode
nice
dmesg
mount
umount
tracepath
bashbug
arch
uncompress
domainname
kill
dd
groups
hostname
sh
arping
echo
ipcalc
chgrp
loadkeys
cat
pwd
ln
more
bash
ping
wpa_supplicant
wpa_passphrase
wpa_cli
atftpd
in.tftpd
fcrontab
pppstats
lighttpd
i2cdetect
dnssec-signzone
dhclient
zic
ip6tables-multi
nsupdate
sensors-detect
cpufreqd
syslogd
hostapd_cli
ns-update
lighttpd-angel
grpck
useradd
chpasswd
nscd
groupdel
alsaconf
ipset
logoutd
chroot
iptables-restore
rndc-confgen
dhclient-script
pppd
snmpd
vigr
dnssec-keygen
i2cset
ntpdc
i2cdump
pwmconfig
rpcinfo
squid
vipw
groupmems
iptables-save
pwunconv
logrotate
pppoe-discovery
udevmonitor
i2cget
tcpdump
iptables-multi
chgpasswd
pwconv
alsactl
rndc
dhcrelay
iconvconfig
dig
isadump
groupmod
named
sntp
iptables
readprofile
partprobe
ntpdate
rmt
fancontrol
grpconv
fcron
conntrack
dhcpd
newusers
ip6tables-save
tunelp
chat
vconfig
sshd
ip6tables-restore
mklost+found
grpunconv
usermod
pppdump
ip6tables
hostapd
snmptrapd
userdel
isaset
conntrackd
zdump
brctl
ntpd
klogd
filefrag
groupadd
ethtool
pwck
parted
lserupdate
ssdfix
ssdcompress
ssdcopy
usbip
usbipd
bind_driver
python
idle
python2.4
smtpd.py
pydoc
php-config
phpize
php-cgi
php
glib-genmarshal
glib-gettextize
gobject-query
glib-mkenums
gdbtui
gdbserver
gdb
wimaxd
wimaxc
atftp
dircolors
expr
deallocvt
top
who
comm
locate
xxd
get_device
rpcgen
ranlib
utmpdump
gencat
mib2c
snmpset
sensors
mk_cmds
ldappasswd
runscript
tail
aconnect
rview
tsort
setmetamode
tee
iptables-xml
sha1sum
mbchk
pcregrep
link
install
mkcp
isosize
ssh-keygen
snmpdelta
curl
rename
less
xargs
rev
write
talk
wall
ssh-agent
zfgrep
mapscrn
expiry
gettext.sh
bzip2recover
psfxtable
mib2c-update
nohup
amixer
cpufreq-aperf
pkill
envsubst
pcretest
mcookie
bzmore
snmpnetstat
compile_et
snmpvacm
setleds
dumpseg
udevinfo
install-info
iecset
psfaddtable
toe
file
setsid
lastlog
arecord
aplay
fmt
updatedb
uniq
ul
RunCache
w
lssu
du
gpasswd
vmstat
snmptranslate
catchsegv
skill
colcrt
base64
ssh-add
ldapcompare
cpufreqd-set
fixproc
factor
slogin
sg
aseqdump
unlink
mktemp
xtrace
dirname
fgconsole
cpufreq-info
ntp-keygen
snmpbulkget
xminicom
libusb-config
uptime
clear
paste
lex
setkeycodes
pcprofiledump
vimdiff
getkeycodes
view
fcronsighup
id
wc
pr
ipcs
dir
get_driver
snmpbulkwalk
md5sum
run-parts
snmpinform
strace
ncurses5-config
namei
tickadj
cmp
pgawk
fold
igawk
chcp
cksum
cut
spawn-fcgi
ntpq
tempfile
chvt
snmpconf
snddevices
tailf
strings
raw
diff
getent
xmlwf
aplaymidi
rsh
gawk
stat
awk
tftp
colrm
flock
sprof
col
cgi-fcgi
getopt
snmpdf
ptx
yacc
newgrp
whereis
gettext
psfstriptable
cpufreqd-get
autopoint
systool
strace-graph
scp
vim
ldapmodify
ddate
dlist_test
zless
pwdx
printf
minicom
tput
lastb
znew
unexpand
pcre-config
chsh
split
pstree
zegrep
sort
vi
unicode_stop
pathchk
rvim
snmpget
logname
nm
tr
ldapadd
ntptime
cpufreq-set
lddlibc4
zgrep
gcov
column
snmptable
rmcp
ldapdelete
squidclient
setfdprm
ldapmodrdn
lsattr
script
dig
iperf
chkdupexe
loadunimap
soapcpp2
snmpusm
snmpwalk
isc-config.sh
pmap
tty
slabtop
mtrace
users
tzselect
seq
pg
ldapwhoami
get_module
hexdump
alsamixer
unicode_start
yes
line
ipcrm
snmptest
telnet
zcmp
getconf
encode_keychange
faillog
renice
wget
ldapexop
look
speaker-test
pinky
addr2line
openssl
shuf
nmap
last
lscp
size
zmore
ftp
ngettext
ldapurl
od
ex
bzdiff
gettextize
ntp-wait
net-snmp-config
snmpstatus
snice
free
c++
recode-sr-latin
kbdrate
setterm
mkfifo
fdformat
snmptrap
ntptrace
amidi
snmpcheck
printenv
arecordmidi
chattr
sdiff
mesg
groups
ldd
cytune
env
zforce
join
rlogin
expand
hostid
psfgettable
ssh-keyscan
tset
vimtutor
rcp
traptoemail
ascii-xfr
tkmib
tload
ssh
udevtest
sum
watch
aseqnet
wsdl2h
pgrep
rsync
ddcmon
aserver
resizecons
snmpgetnext
ldapsearch
whoami
reset
zdiff
pstree.x11
uuidgen
diff3
sftp
curl-config
bzgrep
[01;31m[root@ccu uucp-1.06.1]#[00m compgen -c
if
then
else
elif
fi
case
esac
for
select
while
until
do
done
in
function
time
{
}
!
[[
]]
.
:
[
alias
bind
break
builtin
caller
cd
command
compgen
complete
continue
declare
dirs
echo
enable
eval
exec
exit
export
false
fc
getopts
hash
help
history
kill
let
local
logout
popd
printf
pushd
pwd
read
readonly
return
set
shift
shopt
source
test
times
trap
true
type
typeset
ulimit
umask
unalias
unset
wait
pure-ftpwho
pure-uploadscript
pure-mrtginfo
pure-authd
pure-ftpd
pure-quotacheck
swapon
depmod
ebtables-save
halt
agetty
bootlogd
udevsettle
pcmcia-check-broken-cis
rtmon
telinit
reboot
ss
nameif
fsck
ifstat
mkfs.bfs
routel
ctstat
rtacct
ifrename
e2label
dhclient-script
tune2fs
cfdisk
lnstat
resize2fs
rtstat
ifdown
pivot_root
slattach
ip
losetup
fsck.minix
modprobe
ctrlaltdel
mkfs.nilfs2
mkswap
mkfs
fdisk
iwgetid
udevtrigger
e2image
tc
route
nstat
blockdev
fsck.ext3
getpcaps
pcmcia-socket-startup
ifcfg
mount.nilfs2
athdebug
dumpe2fs
ebtables
udevd
insmod
findfs
udevcontrol
capsh
shutdown
iwevent
fsck.cramfs
mkfs.ext2
80211stats
ebtables-restore
mii-tool
rmmod
plipconfig
athchans
80211debug
mke2fs
rtpr
pccardctl
debugfs
wlanconfig
blkid
scsi_id
sysctl
genl
hwclock
iwpriv
rarp
routef
fsck.ext2
madwifi-unload
swapoff
mkfs.ext3
e2fsck
lspcmcia
iwconfig
modinfo
mkfs.cramfs
generate-modprobe.conf
ifup
athctrl
mkfs.minix
logsave
athkey
athstats
nilfs_cleanerd
ldconfig
init
elvtune
killall5
insmod.static
ifconfig
umount.nilfs2
poweroff
iwlist
runlevel
arp
sfdisk
iwspy
sulogin
badblocks
nologin
pure-statsdecode
pure-pw
pure-pwconvert
chmod
gzexe
passwd
qemu
sync
rdisc
setfont
mountpoint
tar
date
test
netstat
install
false
egrep
less
lessecho
cli
mkdir
qemu-img
sed
df
dnsdomainname
ps
bzip2
head
basename
grep
cp
find
bzcat
ls
readlink
tftpd
[
openvt
bunzip2
sleep
mknod
xmlwf
ypdomainname
su
qemu-io
login
lsmod
clockdiff
rmdir
logger
gzip
fuser
chown
killall
uname
rm
mv
fgrep
pidof
rarpd
true
gunzip
stty
lesskey
zcat
qemu-nbd
oldfuser
nisdomainname
touch
kbd_mode
nice
dmesg
mount
umount
tracepath
bashbug
arch
uncompress
domainname
kill
dd
groups
hostname
sh
arping
echo
ipcalc
chgrp
loadkeys
cat
pwd
ln
more
bash
ping
wpa_supplicant
wpa_passphrase
wpa_cli
atftpd
in.tftpd
fcrontab
pppstats
lighttpd
i2cdetect
dnssec-signzone
dhclient
zic
ip6tables-multi
nsupdate
sensors-detect
cpufreqd
syslogd
hostapd_cli
ns-update
lighttpd-angel
grpck
useradd
chpasswd
nscd
groupdel
alsaconf
ipset
logoutd
chroot
iptables-restore
rndc-confgen
dhclient-script
pppd
snmpd
vigr
dnssec-keygen
i2cset
ntpdc
i2cdump
pwmconfig
rpcinfo
squid
vipw
groupmems
iptables-save
pwunconv
logrotate
pppoe-discovery
udevmonitor
i2cget
tcpdump
iptables-multi
chgpasswd
pwconv
alsactl
rndc
dhcrelay
iconvconfig
dig
isadump
groupmod
named
sntp
iptables
readprofile
partprobe
ntpdate
rmt
fancontrol
grpconv
fcron
conntrack
dhcpd
newusers
ip6tables-save
tunelp
chat
vconfig
sshd
ip6tables-restore
mklost+found
grpunconv
usermod
pppdump
ip6tables
hostapd
snmptrapd
userdel
isaset
conntrackd
zdump
brctl
ntpd
klogd
filefrag
groupadd
ethtool
pwck
parted
lserupdate
ssdfix
ssdcompress
ssdcopy
usbip
usbipd
bind_driver
python
idle
python2.4
smtpd.py
pydoc
php-config
phpize
php-cgi
php
glib-genmarshal
glib-gettextize
gobject-query
glib-mkenums
gdbtui
gdbserver
gdb
wimaxd
wimaxc
atftp
dircolors
expr
deallocvt
top
who
comm
locate
xxd
get_device
rpcgen
ranlib
utmpdump
gencat
mib2c
snmpset
sensors
mk_cmds
ldappasswd
runscript
tail
aconnect
rview
tsort
setmetamode
tee
iptables-xml
sha1sum
mbchk
pcregrep
link
install
mkcp
isosize
ssh-keygen
snmpdelta
curl
rename
less
xargs
rev
write
talk
wall
ssh-agent
zfgrep
mapscrn
expiry
gettext.sh
bzip2recover
psfxtable
mib2c-update
nohup
amixer
cpufreq-aperf
pkill
envsubst
pcretest
mcookie
bzmore
snmpnetstat
compile_et
snmpvacm
setleds
dumpseg
udevinfo
install-info
iecset
psfaddtable
toe
file
setsid
lastlog
arecord
aplay
fmt
updatedb
uniq
ul
RunCache
w
lssu
du
gpasswd
vmstat
snmptranslate
catchsegv
skill
colcrt
base64
ssh-add
ldapcompare
cpufreqd-set
fixproc
factor
slogin
sg
aseqdump
unlink
mktemp
xtrace
dirname
fgconsole
cpufreq-info
ntp-keygen
snmpbulkget
xminicom
libusb-config
uptime
clear
paste
lex
setkeycodes
pcprofiledump
vimdiff
getkeycodes
view
fcronsighup
id
wc
pr
ipcs
dir
get_driver
snmpbulkwalk
md5sum
run-parts
snmpinform
strace
ncurses5-config
namei
tickadj
cmp
pgawk
fold
igawk
chcp
cksum
cut
spawn-fcgi
ntpq
tempfile
chvt
snmpconf
snddevices
tailf
strings
raw
diff
getent
xmlwf
aplaymidi
rsh
gawk
stat
awk
tftp
colrm
flock
sprof
col
cgi-fcgi
getopt
snmpdf
ptx
yacc
newgrp
whereis
gettext
psfstriptable
cpufreqd-get
autopoint
systool
strace-graph
scp
vim
ldapmodify
ddate
dlist_test
zless
pwdx
printf
minicom
tput
lastb
znew
unexpand
pcre-config
chsh
split
pstree
zegrep
sort
vi
unicode_stop
pathchk
rvim
snmpget
logname
nm
tr
ldapadd
ntptime
cpufreq-set
lddlibc4
zgrep
gcov
column
snmptable
rmcp
ldapdelete
squidclient
setfdprm
ldapmodrdn
lsattr
script
dig
iperf
chkdupexe
loadunimap
soapcpp2
snmpusm
snmpwalk
isc-config.sh
pmap
tty
slabtop
mtrace
users
tzselect
seq
pg
ldapwhoami
get_module
hexdump
alsamixer
unicode_start
yes
line
ipcrm
snmptest
telnet
zcmp
getconf
encode_keychange
faillog
renice
wget
ldapexop
look
speaker-test
pinky
addr2line
openssl
shuf
nmap
last
lscp
size
zmore
ftp
ngettext
ldapurl
od
ex
bzdiff
gettextize
ntp-wait
net-snmp-config
snmpstatus
snice
free
c++
recode-sr-latin
kbdrate
setterm
mkfifo
fdformat
snmptrap
ntptrace
amidi
snmpcheck
printenv
arecordmidi
chattr
sdiff
mesg
groups
ldd
cytune
env
zforce
join
rlogin
expand
hostid
psfgettable
ssh-keyscan
tset
vimtutor
rcp
traptoemail
ascii-xfr
tkmib
tload
ssh
udevtest
sum
watch
aseqnet
wsdl2h
pgrep
rsync
ddcmon
aserver
resizecons
snmpgetnext
ldapsearch
whoami
reset
zdiff
pstree.x11
uuidgen
diff3
sftp
curl-config
bzgrep
答案1
您无法在机器本身上构建。这意味着您需要从其他地方复制二进制文件。并且这些二进制文件必须适合您的嵌入式设备 - ARM 设备不会运行 x86 或 MIPS 二进制文件。
因此,第一个问题是您拥有什么设备。uname -a
应该会有所帮助。如果您能找到该架构的二进制文件,那就太好了。将它们复制过来,运行ldd
以找出它需要哪些库,然后安装它们,这样就好了。
如果你不能 找到二进制文件后,您需要在另一台机器上构建它们。这称为交叉编译。您可以在普通 PC 上执行此操作,最好是运行 Linux 的 PC。但您需要设置交叉编译器工具链。这方面有很多文档,但您应该在 StackOverflow 上询问详细的问题。