Cannot connect to GIT from jenkins -


i have run jenkins on aix with:

java -jar jenkins.war --httpport=8082 

in jenkins job configure > source code management > git, enter

repository url: user@xxx.xxx.xxx.xxx:/opt/git/project.git 

where xxx ip of server.

i got following error message:

failed connect repository : command "/usr/bin/git ls-remote -h user@xxx.xxx.xxx.xxx:/opt/git/project.git head" returned status code 255: stdout:  stderr: exec(): 0509-036 cannot load program /usr/bin/git because of following errors: 0509-150   dependent module /usr/lib/libiconv.a(libiconv.so.2) not loaded. 0509-152   member libiconv.so.2 not found in archive  

i have tested on both aix , winxp. works fine on windows machine. need jenkins on aix server. have googled error in vain. how can solve error?

make sure have libiconv installed (either in /usr/... or in /opt), in this thread or this one.

find /opt -name "libiconv*" -print find /usr -name "libiconv*" -print 

try , unset $libpath.

type ldd /usr/bin/git check git looks dependencies.


the op lai confirms having used 1 of solutions:

when use ldd /usr/bin/git, gives /opt/freeware/lib/libiconv.a(libiconv.so.2).
git error /usr/lib/libiconv.a(libiconv.so.2).

there libiconv.la in /opt/freeware/lib not in /usr/lib.
copied /usr/lib works.


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -