Compiling stuffs on the ReadyNAS (5)
The ReadyNAS is just like a regular computer system. The APT addon on ReadyNAS’s community allows end users to install or remove packages easily using the apt-get command.
Basically, you can get your compiling environment up and running by installing the following addons – APT, ToggleSSH, EnableRootSSH. Following that, ssh to your ReadyNAS and install the following packages for compiling.
# apt-get update
# apt-get install libc6-dev gcc gdb libtag1-dev uuid-dev
Select Yes for those additional packages the system suggests.
Hurray! Time to compile transmission on the ReadyNAS.
Hmm, this caused my ReadyNAS to crash. Specifically:
# apt-get update
[...]
# apt-get install libc6-dev gcc gdb libtag1-dev uuid-dev
[...]
dpkg: error processing gcc (–configure):
subprocess post-installation script killed by signal (Illegal instruction)
Setting up gdb (6.3-6) …
dpkg: error processing gdb (–configure):
subprocess post-installation script killed by signal (Illegal instruction)
Setting up linux-kernel-headers (2.6.17.8ReadyNAS.netgear1) …
Setting up libc6-dev (2.3.2.ds1-22sarge6.infrant1) …
Setting up libtag1-dev (1.4-2bpo2.netgear1) …
Setting up uuid-dev (1.2-1.40.2-1.netgear2) …
Errors were encountered while processing:
gcc
gdb
E: Sub-process /usr/bin/dpkg returned an error code (1)
nas:/c/home/rico99# ls
Illegal instruction
I had to reinstall from flash. Any ideas?
Solution described here: http://www.readynas.com/forum/viewtopic.php?p=78726
Sure enough I had messed around with ‘apt’ on my own about a year ago.
The following fixed it:
# cd /lib
# rm *2.3.6*
Then the apt-get install commands worked without breaking things.
Eric,
Thanks for sharing. I would include your findings in the entry so that others could benefit as well. Thanks!
When I tried to install these on the ReadyNAS, I get an error:
libtag1-dev: Depends: libtag1 (= 1.4-2bpo2.netgear1) but 1.4-2bpo2.netgear2 is to be installed
Any thoughts on this issue?
The Plaid Cow,
try apt-get install libtag1