NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
richt111
Jul 31, 2008Aspirant
Git
Has anybody tried installing git on a ReadyNAS or know if this is possible? Thanks.
TaffyDownUnder1
Apr 13, 2009Aspirant
I've used the following to build Git from source on a Duo; as of yet I haven't done that much testing and there were some warnings during the build about a potential conflict between versions of the libcrypto library used by curl ... so use with caution.
First SSH onto the NAS and set up a development environment as per http://www.readynas.com/forum/viewtopic.php?f=35&t=14903
Basically:
Now ensure additional packages required by the build are on your NAS:
Seems that the Perl install on the NAS has had a few things removed so we reinstall Perl:
Obtain GIT source and unpack to /usr/src:
Build and install GIT (this takes awhile):
At this point you should have a built version of git in /usr/bin.
At some point you may want to clean up to save space:
You may even want to zip or remove the code under /usr/src/git-1.6.2.3
NOTE: you still have to set up the git-daemon to run via inetd
First SSH onto the NAS and set up a development environment as per http://www.readynas.com/forum/viewtopic.php?f=35&t=14903
Basically:
sudo apt-get update
sudo apt-get install libc6-dev
sudo apt-get install gcc
sudo apt-get install gdb
sudo apt-get install libtag1-dev
sudo apt-get install uuid-dev
Now ensure additional packages required by the build are on your NAS:
sudo apt-get install expat
sudo apt-get install libexpat1-dev
sudo apt-get install curl
sudo apt-get install libcurl3-dev
sudo apt-get install zlib
sudo apt-get install openssl
sudo apt-get install libssl-dev
sudo apt-get install tcl8.4-dev
Seems that the Perl install on the NAS has had a few things removed so we reinstall Perl:
sudo apt-get --reinstall install perl
sudo apt-get --reinstall install perl-modules
Obtain GIT source and unpack to /usr/src:
cd /usr/src
sudo wget http://kernel.org/pub/software/scm/git/git-1.6.2.3.tar.bz2
sudo tar -xvjpf git-1.6.2.3.tar.bz2
Build and install GIT (this takes awhile):
cd /usr/src/git-1.6.2.3
sudo make prefix=/usr install
At this point you should have a built version of git in /usr/bin.
At some point you may want to clean up to save space:
sudo apt-get clean
cd /usr/src/git-1.6.2.3
sudo make clean
You may even want to zip or remove the code under /usr/src/git-1.6.2.3
NOTE: you still have to set up the git-daemon to run via inetd
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!