{"thread":{"id":"35711","subject":"libz and RHEL 5.9 compile of Git","startedAt":"2014-01-22T15:59:52Z","lastAt":"2014-01-23T13:11:47Z","messageCount":6,"participants":["salmansheikh","Jonathan Nieder","Torsten Bögershausen","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"233520","messageId":"1390406392415-7602374.post@n2.nabble.com","threadId":"35711","inReplyTo":null,"subject":"libz and RHEL 5.9 compile of Git","fromName":"salmansheikh","fromEmail":"salmanisheikh@gmail.com","sentAt":"2014-01-22T15:59:52Z","receivedAt":"2014-01-22T15:59:52Z","isPatch":false,"sender":{"key":"salmanisheikh@gmail.com","avatar":null},"body":"Hello,\n\nI have a RHEL system that I am not the admin of. I needed to install git and\ngot the source. Everything is okay until I got to this point below. I\ndownloaded and installed the latest libz (1.2.8) but i installed it under a\nlocal directory under my user name (i.e. /home/ssheikh/local). The problem\nis that git only looks in the locations below. I even have that directory in\nmy $LD_LIBRARY_PATH. So, how can I force make to use that version of libz\nand not the old one that came with this RHEL 5.9 distro?\n\n[ssheikh@gs-560g3080090e git-1.8.3.4]$ make\n    LINK git-credential-store\n/usr/bin/ld: skipping incompatible /lib/libz.so when searching for -lz\n/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz\n/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz\n/usr/bin/ld: cannot find -lz\ncollect2: ld returned 1 exit status\nmake: *** [git-credential-store] Error 1\n\n\n\n\n--\nView this message in context: http://git.661346.n2.nabble.com/libz-and-RHEL-5-9-compile-of-Git-tp7602374.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"233523","messageId":"20140122163007.GK18964@google.com","threadId":"35711","inReplyTo":"1390406392415-7602374.post@n2.nabble.com","subject":"Re: libz and RHEL 5.9 compile of Git","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2014-01-22T16:30:07Z","receivedAt":"2014-01-22T16:30:07Z","isPatch":false,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"Hi,\n\nsalmansheikh wrote:\n\n>                                                                     I\n> downloaded and installed the latest libz (1.2.8) but i installed it under a\n> local directory under my user name (i.e. /home/ssheikh/local). The problem\n> is that git only looks in the locations below. I even have that directory in\n> my $LD_LIBRARY_PATH.\n\nConfusingly, LD_LIBRARY_PATH is only used a run-time.  The build time\nlibrary path is just called LIBRARY_PATH.\n\nYou may also need to add your libz's include/ dir to CPATH.  See\nhttp://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html for more\ndetails.\n\nHope that helps,\nJonathan\n"},{"id":"233534","messageId":"52E02310.9090609@web.de","threadId":"35711","inReplyTo":"1390406392415-7602374.post@n2.nabble.com","subject":"Re: libz and RHEL 5.9 compile of Git","fromName":"Torsten Bögershausen","fromEmail":"tboegi@web.de","sentAt":"2014-01-22T19:59:12Z","receivedAt":"2014-01-22T19:59:12Z","isPatch":false,"sender":{"key":"tboegi@web.de","avatar":"https://avatars.githubusercontent.com/u/7138363?v=4"},"body":"On 2014-01-22 16.59, salmansheikh wrote:\n> Hello,\n> \n> I have a RHEL system that I am not the admin of. I needed to install git and\n> got the source. Everything is okay until I got to this point below. I\n> downloaded and installed the latest libz (1.2.8) but i installed it under a\n> local directory under my user name (i.e. /home/ssheikh/local). The problem\n> is that git only looks in the locations below. I even have that directory in\n> my $LD_LIBRARY_PATH. So, how can I force make to use that version of libz\n> and not the old one that came with this RHEL 5.9 distro?\n> \n> [ssheikh@gs-560g3080090e git-1.8.3.4]$ make\n>     LINK git-credential-store\n> /usr/bin/ld: skipping incompatible /lib/libz.so when searching for -lz\n> /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz\n> /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz\n> /usr/bin/ld: cannot find -lz\n> collect2: ld returned 1 exit status\n> make: *** [git-credential-store] Error 1\n> \nYou need to tell the linker where to search for the library.\nPlease have a look at the Makefile:\n\nifdef ZLIB_PATH\n\tBASIC_CFLAGS += -I$(ZLIB_PATH)/include\n\tEXTLIBS += -L$(ZLIB_PATH)/$(lib) $(CC_LD_DYNPATH)$(ZLIB_PATH)/$(lib)\nendif\n"},{"id":"233547","messageId":"1390426029203-7602400.post@n2.nabble.com","threadId":"35711","inReplyTo":"52E02310.9090609@web.de","subject":"Re: libz and RHEL 5.9 compile of Git","fromName":"salmansheikh","fromEmail":"salmanisheikh@gmail.com","sentAt":"2014-01-22T21:27:09Z","receivedAt":"2014-01-22T21:27:09Z","isPatch":false,"sender":{"key":"salmanisheikh@gmail.com","avatar":null},"body":"Got it working but then I had some issues with the perl portions of the\ninstall and I subsequently thought I could eliminate those portions and\ntried setting export NO_PERL=1 and that installed everything else...and got\npass this error but when I tried to checkout a git repository as follows, I\nget some remote helper error. Is that related to the perl parts of the git? \n\ngit clone https://github.com/m-labs/migen.git\nCloning into 'migen'...\nfatal: Unable to find remote helper for 'https'\n\n\n*******************\ninstall -d -m 755 '/home/ssheikh/local/libexec/git-core'\ninstall   git-credential-store git-daemon git-fast-import git-http-backend\ngit-imap-send git-sh-i18n--envsubst git-shell git-show-index git-upload-pack\ngit-remote-testsvn git-credential-cache git-credential-cache--daemon git-am\ngit-bisect git-difftool--helper git-filter-branch git-lost-found\ngit-merge-octopus git-merge-one-file git-merge-resolve git-mergetool\ngit-pull git-quiltimport git-rebase git-repack git-request-pull git-stash\ngit-submodule git-web--browse git-add--interactive git-difftool\ngit-archimport git-cvsexportcommit git-cvsimport git-cvsserver git-relink\ngit-send-email git-svn git-remote-testpy git-p4 git-instaweb\n'/home/ssheikh/local/libexec/git-core'\ninstall -m 644  git-mergetool--lib git-parse-remote git-rebase--am\ngit-rebase--interactive git-rebase--merge git-sh-setup git-sh-i18n\n'/home/ssheikh/local/libexec/git-core'\ninstall git git-upload-pack git-receive-pack git-upload-archive git-shell\ngit-cvsserver '/home/ssheikh/local/bin'\nmake -C templates DESTDIR='' install\nmake[1]: Entering directory `/home/ssheikh/Downloads/git-1.8.3.4/templates'\ninstall -d -m 755 '/home/ssheikh/local/share/git-core/templates'\n(cd blt && gtar cf - .) | \\\n        (cd '/home/ssheikh/local/share/git-core/templates' && umask 022 &&\ngtar xof -)\nmake[1]: Leaving directory `/home/ssheikh/Downloads/git-1.8.3.4/templates'\ninstall -d -m 755 '/home/ssheikh/local/libexec/git-core/mergetools'\ninstall -m 644 mergetools/*\n'/home/ssheikh/local/libexec/git-core/mergetools'\ninstall -d -m 755 '/home/ssheikh/local/share/locale'\n(cd po/build/locale && gtar cf - .) | \\\n        (cd '/home/ssheikh/local/share/locale' && umask 022 && gtar xof -)\nmake -C perl prefix='/home/ssheikh/local' DESTDIR='' install\nmake[1]: Entering directory `/home/ssheikh/Downloads/git-1.8.3.4/perl'\nmake[2]: Entering directory `/home/ssheikh/Downloads/git-1.8.3.4/perl'\nmkdir /usr/local/lib64/perl5: Permission denied at\n/usr/lib/perl5/5.8.8/ExtUtils/Install.pm line 112\nmake[2]: *** [pure_site_install] Error 13\nmake[2]: Leaving directory `/home/ssheikh/Downloads/git-1.8.3.4/perl'\nmake[1]: *** [install] Error 2\nmake[1]: Leaving directory `/home/ssheikh/Downloads/git-1.8.3.4/perl'\nmake: *** [install] Error 2\n*********************************************************\n\n\n\n--\nView this message in context: http://git.661346.n2.nabble.com/libz-and-RHEL-5-9-compile-of-Git-tp7602374p7602400.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"233578","messageId":"20140123014504.GE17254@sigill.intra.peff.net","threadId":"35711","inReplyTo":"1390426029203-7602400.post@n2.nabble.com","subject":"Re: libz and RHEL 5.9 compile of Git","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2014-01-23T01:45:04Z","receivedAt":"2014-01-23T01:45:04Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, Jan 22, 2014 at 01:27:09PM -0800, salmansheikh wrote:\n\n> Got it working but then I had some issues with the perl portions of the\n> install and I subsequently thought I could eliminate those portions and\n> tried setting export NO_PERL=1 and that installed everything else...and got\n> pass this error but when I tried to checkout a git repository as follows, I\n> get some remote helper error. Is that related to the perl parts of the git? \n> \n> git clone https://github.com/m-labs/migen.git\n> Cloning into 'migen'...\n> fatal: Unable to find remote helper for 'https'\n\nDid you build with libcurl support? That's what all of the https code is\nbuilt on.\n\n-Peff\n"},{"id":"233594","messageId":"52E11513.5010501@web.de","threadId":"35711","inReplyTo":"1390426029203-7602400.post@n2.nabble.com","subject":"Re: libz and RHEL 5.9 compile of Git","fromName":"Torsten Bögershausen","fromEmail":"tboegi@web.de","sentAt":"2014-01-23T13:11:47Z","receivedAt":"2014-01-23T13:11:47Z","isPatch":false,"sender":{"key":"tboegi@web.de","avatar":"https://avatars.githubusercontent.com/u/7138363?v=4"},"body":"On 2014-01-22 22.27, salmansheikh wrote:\n> Got it working but then I had some issues with the perl portions of the\n> install and I subsequently thought I could eliminate those portions and\n> tried setting export NO_PERL=1 and that installed everything else...and got\n> pass this error but when I tried to checkout a git repository as follows, I\n> get some remote helper error. Is that related to the perl parts of the git? \n\nNo\n\n> git clone https://github.com/m-labs/migen.git\n> Cloning into 'migen'...\n> fatal: Unable to find remote helper for 'https'\n\nPlease have a look at libcurl.\nIt seems that libcurl on your system does not support https\n\nThe Makefile of Git is your friend:\n# Define CURLDIR=/foo/bar if your curl header and library files are in\n# /foo/bar/include and /foo/bar/lib directories.\n"}]}