NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
anonynas
Mar 06, 2011Aspirant
Mercurial (hg) SCM on ReadyNAS?
Hi All,
I was wondering if anyone has successfully installed Mercurial on their ReadyNAS. I'm struggling because I can't seem to get a complete Python install.
I downloaded and installed Python 2.7. I also downloaded Mercurial 1.7.5, but when I try to install it, it complains that I don't have bz2. I installed libbz2 using apt, and I'm not sure what else I need to do to get this working. Has anyone else had success in installing Mercurial?
If anyone has tips, I'd appreciate it.
Thanks!
I was wondering if anyone has successfully installed Mercurial on their ReadyNAS. I'm struggling because I can't seem to get a complete Python install.
I downloaded and installed Python 2.7. I also downloaded Mercurial 1.7.5, but when I try to install it, it complains that I don't have bz2. I installed libbz2 using apt, and I'm not sure what else I need to do to get this working. Has anyone else had success in installing Mercurial?
If anyone has tips, I'd appreciate it.
Thanks!
25 Replies
Replies have been turned off for this discussion
- WhoCares_MentorI'll take a look at it once I'm fully awake ;)
-Stefan - anonynasAspirantThanks Stephan!
I kept on at this today, but couldn't figure out what's wrong. If you (or anyone else) has ideas, that would be a great help!
Thanks. - anonynasAspirantHi,
If anyone is interested, I managed to get this working, sort of, but it was ugly.
I installed Python 2.5.2 according to the instructions in this thread http://www.readynas.com/forum/viewtopic.php?f=35&t=35447. I then downloaded Mercurial v. 1.7.5. Since this version of Python inexplicably did not find my local install of bz2, I commented out the lines in the Mercurial setup.py that refer to importing bz2 (lines 39-43 in this version of Mercurial). I then didmake install
, and it worked.
To clone a repository on another machine over ssh I had tochmod o+w /dev/tty
to allow outbound ssh. I tried pull, up and serve, and they all seem to be working.
I've not used Mercurial enough to know what is going to happen because Python can't find bz2, but if I find out, I'll try to remember to report it here.
If anyone comes up with a better way of doing this, I'd been keen to find out. - WhoCares_MentorYou could try
apt-get install bz2
if you've got the APT add-on installed. Other than that all I can say is that I'm working on it but want to use Python 2.6 instead of 2.5. Unfortunately this still gives me some headaches, otherwise the Mercurial add-on would be available already.
-Stefan - anonynasAspirant
WhoCares? wrote: You could try apt-get install bz2
if you've got the APT add-on installed. Other than that all I can say is that I'm working on it but want to use Python 2.6 instead of 2.5. Unfortunately this still gives me some headaches, otherwise the Mercurial add-on would be available already.
-Stefan
Hi Stefan,
Yeah, I did apt-get install bz2, which is why I'm so confused. I also downloaded the package descriptions for the sparc release of Sarge and installed everything that seemed relevant when I grepped for bz2, but to no avail. I don't know if it is a path issue or something?
I didn't try Python 2.6, but I did try 2.7, and it came up with far more complaints than 2.5 did. I'm really confused why this is so hard; it should be trivial.
Cheers! - WhoCares_MentorSorry, my fault. I meant
apt-get install libbz2
and possibly evenapt-get install libbz2-dev
As to the problems installing 2.6/2.7: Both rely heavily on libraries that just aren't availabe on the ReadyNAS.
-Stefan - anonynasAspirantThanks. I hadn't installed the development version. Stupid of me to have missed that. I'll try a recompile, and see if that works. Other than Mercurial, I'm not much of a Python user, so 2.5 is okay for me.
Thanks! - ddumontAspirantAny news on this being turned into an addon? I'm very interested in it.
- ddumontAspirantActually python 2.7 was really easy to install without having to edit anything, and mercurial installed without too much effort either.
hopefully it's easy to set up as a place to push to easily. - This looks quite interesting, might have a look at it myself.
Before I investigate further, any first hand experience of people using it now? And on which Readynas?
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!