Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to install Mercurial on OEL 5.2

Pierre ForstmannJan 26 2010 — edited Jan 27 2010
I'm trying to install Mercurial 1.4.2 on OEL 5.2. OEL public repository does not know Mercurial:
$ uname -a
Linux oracle.localdomain 2.6.18-92.el5 #1 SMP Fri May 23 22:17:30 EDT 2008 i686 i686 i386 GNU/Linux
$ cat /etc/yum.repos.d/public-yum-el5.repo
[el5_ga_base]
name=Enterprise Linux $releasever GA - $basearch - base
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/0/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0

[el5_u1_base]
name=Enterprise Linux $releasever U1 - $basearch - base
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/1/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0

[el5_u2_base]
name=Enterprise Linux $releasever U2 - $basearch - base
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/2/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=1

[el5_u3_base]
name=Enterprise Linux $releasever U3 - $basearch - base
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/3/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0

[el5_u4_base]
name=Enterprise Linux $releasever U4 - $basearch - base
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/4/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0

[el5_addons]
name=Enterprise Linux $releasever - $basearch - addons
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/addons/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0

[el5_oracle_addons]
name=Enterprise Linux $releasever - $basearch - oracle_addons
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/oracle_addons/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0

yum install mercurial-1.4.2
Loading "security" plugin
Setting up Install Process
Parsing package install arguments
No package mercurial-1.4.2 available.
Nothing to do
[root@oracle mercurial-1.4.2]# yum install mercurial
Loading "security" plugin
Setting up Install Process
Parsing package install arguments
No package mercurial available.
Nothing to do
If I try to install manually Mercurial 1.4.2 using source tar ball I get:
$ python -V
Python 2.4.3
$ python setup.py install --force
running install
running build
running build_py
running build_ext
building 'mercurial.base85' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -I/usr/include/python2.4 -c mercurial/base85.c -o build/temp.linux-i686-2.4/mercurial/base85.o
mercurial/base85.c:12:20: error: Python.h: No such file or directory
mercurial/base85.c: In function 'b85prep':
mercurial/base85.c:23: warning: implicit declaration of function 'memset'
mercurial/base85.c:23: warning: incompatible implicit declaration of built-in function 'memset'
mercurial/base85.c: At top level:
mercurial/base85.c:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
mercurial/base85.c:76: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
mercurial/base85.c:141: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'methods'
mercurial/base85.c:150: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'initbase85'
error: command 'gcc' failed with exit status 1
It seems that Mercurial requires python-dev package but I cannot find python-dev 2.4.3 package with YUM or even on www.python.org ???

Does anyone know how to install Mercurial on OEL 5.2 ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 24 2010
Added on Jan 26 2010
5 comments
3,527 views