[Freeipa-users] RHEL 5 Compiling ipa-client (only) from source

Rob Crittenden rcritten at redhat.com
Mon Jan 12 16:31:14 UTC 2009


Viji V Nair wrote:
> Hi,
> 
> I have done a manual compilation of ipa-client on an RHEL 5.2 x86_64 
> system. After struggling with a lot of errors I finally got it working 
> by following the below steps.
> 
> Can anyone suggest is there anything wrong in my steps? Can I use the 
> same steps to configure other clients also?

You'd be better off using the attached patch. This will let you do a 
build from the top-level and avoid all the version problems. Plus it can 
build rpms for you.

% make IPA_VERSION_IS_GIT_SNAPSHOT=no local-dist

The rpms will be in dist/rpms

rob

> 
> 1. Download and  un-compress freeipa source, 
> http://freeipa.org/downloads/src/freeipa-1.2.1.tar.gz
> 
> # tar -zxvf freeipa-1.2.1.tar.gz
> # cd freeipa-1.2.1/ipa-client
> 
> 2. I have installed the following prerequisites after seeing the 
> dependency errors.
> 
> # yum install autoconf automake pkgconfig.x86_64 libtool.x86_64 
> mozldap-devel.x86_64 krb5-devel.x86_64 openldap-devel.x86_64 
> python-ldap.x86_64
> 
> 3. System was complaining about there is no version.m4 file, so I did a 
> copy paste of
> 
> #  cp version.m4.in <http://version.m4.in> version.m4
> 
> 4. System was telling I should add the contents of 
> /usr/share/aclocal/libtool.m4 to aclocal.m4, so I did
> 
> #  cat /usr/share/aclocal/libtool.m4 >> aclocal.m4
> 
> 5. After this I have complied the source using the following commands.
> 
> # ./autogen.sh
> # make
> # make install
> 
> 6. When I started ipa-client-install, it was showing so many missing 
> python module errors, so I have done the following steps to get rid of it.
> 
> a. Downloaded python-krbV-1.0.13-5.el5.x86_64.rpm from 
> (http://download.fedora.redhat.com/pub/epel/5Server/x86_64/python-krbV-1.0.13-5.el5.x86_64.rpm) 
> and installed
> 
> # rpm -ivh python-krbV-1.0.13-5.el5.x86_64.rpm
> 
> b. Manually build the other python modules.
> 
> # cd freeipa-1.2.1/ipa-python
> # python setup.py.in <http://setup.py.in> build
> # python setup.py.in <http://setup.py.in> install
> 
> c. Copied the required python modules to the actual location
> 
> # cp -a /usr/local/lib/python2.4/site-packages/ipaclient 
> /usr/lib64/python2.4/site-packages/
> 
> d. Finally I got a version error, I have done a hard coding to fix it.
> 
> # cp version.py.in <http://version.py.in> 
> /usr/lib/python2.4/site-packages/ipa/version.py
> # cat /usr/lib/python2.4/site-packages/ipa/version.py
> 
> #VERSION="__VERSION__"
> VERSION="1.2.1"
> #NUM_VERSION=__NUM_VERSION__
> NUM_VERSION="1.2.1"
> 
> Thanks & Regards
> Viji
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Freeipa-users mailing list
> Freeipa-users at redhat.com
> https://www.redhat.com/mailman/listinfo/freeipa-users

-------------- next part --------------
A non-text attachment was scrubbed...
Name: make.patch
Type: text/x-patch
Size: 4507 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-users/attachments/20090112/87b90c4e/attachment.bin>


More information about the Freeipa-users mailing list