[Freeipa-users] RHEL 5 Compiling ipa-client (only) from source
Rob Crittenden
rcritten at redhat.com
Wed Jan 14 22:29:00 UTC 2009
Marc Richards wrote:
> Rob Crittenden wrote:
>> 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
>>
>>
>
> Does this replace everything after step 2 or everything after step 4?
Step 2. The new steps are:
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
2. Apply the patch
% patch -p1 < /path/to/make.patch
3. Get the prerequisites
yum -y install autoconf automake pkgconfig libtool mozldap-devel
krb5-devel openldap-devel python-ldap
You'll need to get python-krbV from EPEL
(http://fedoraproject.org/wiki/EPEL)
4. Make rpms
% make IPA_VERSION_IS_GIT_SNAPSHOT=no local-dist
The rpms will be in dist/rpms
> Are there any plans to make client binaries available for download for
> systems other than Fedora? It would certainly make things easier for
> testing against existing systems.
We did our own Fedora builds before we got it accepted and the binaries
were almost always woefully behind so I doubt it. Someone could probably
use these instructions to get it built in EPEL though.
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
>>
More information about the Freeipa-users
mailing list