Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Problem With GIT on AIX 6.1

Posted on 2013-01-14
2
Medium Priority
?
1,002 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

722 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