Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Problem With GIT on AIX 6.1

Posted on 2013-01-14
2
Medium Priority
?
1,010 Views
Last Modified: 2013-01-14
Hello Experts..

I recently installed GIT version control system on AIX 6.1.

If I issue a GIT command like :
git --version as a root user I am getting the expected result.

But If a normal user tries the same command the user is  getting error as:

stuadmin:stud:/usr/lib> git --version
exec(): 0509-036 Cannot load program git because of the following errors:
        0509-150   Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded.
        0509-152   Member libiconv.so.2 is not found in archive

Open in new window


How can I solve this.

Please help...
0
Comment
Question by:gaugeta
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 total points
ID: 38774135
Seems there are different LIBPATH settings for root and the normal user.

libiconv.a as provided by the RPM package "libiconv" is located in /opt/freeware/lib and this is the library required by GIT.

libiconv.a as provided by the AIX package "bos.rte.iconv" is located in /usr/lib. /usrlib is the preferred path if no LIBPATH is set, but the libiconv library there is not suitable for GIT.

So run

echo $LIBPATH

as root and as normal user and compare the results.

If there is a LIBPATH for the normal user (I think there is none) try to find out where it's being set and adjust accordingly, otherwise add a LIBPATH statement corresponding to root's LIBPATH to the normal user's .profile.
0
 

Author Comment

by:gaugeta
ID: 38774188
@woolmilkporc: Thanks a lot for the help.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question