Install error with blanks in install dir name path
Closed this issue · 2 comments
iefdev commented
I experienced an error when I installed GeoIP. I managed to work around it, but wanted to report it here.
If the downloaded/unpacked folder have a blank in its full path name, then sudo make install
throws an error.
My folder was located at: /path/to/dir/GeoIP/GeoIP c/GeoIP-1.6.2/
(note the blank in: GeoIP c)
[me@foobar] GeoIP-1.6.2$ export GEOIP_ARCH='-arch x86_64'
[me@foobar] GeoIP-1.6.2$ ./configure --disable-dependency-tracking
<snip />
[me@foobar] GeoIP-1.6.2$ make -j5
<snip />
[me@foobar] GeoIP-1.6.2$ sudo make install
Password:
Making install in libGeoIP
.././install-sh -c -d '/usr/local/lib'
/bin/sh ../libtool --mode=install /usr/bin/install -c libGeoIP.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libGeoIP.1.dylib /usr/local/lib/libGeoIP.1.dylib
libtool: install: (cd /usr/local/lib && { ln -s -f libGeoIP.1.dylib libGeoIP.dylib || { rm -f libGeoIP.dylib && ln -s libGeoIP.1.dylib libGeoIP.dylib; }; })
libtool: install: /usr/bin/install -c .libs/libGeoIP.lai /usr/local/lib/libGeoIP.la
libtool: install: /usr/bin/install -c .libs/libGeoIP.a /usr/local/lib/libGeoIP.a
libtool: install: chmod 644 /usr/local/lib/libGeoIP.a
libtool: install: ranlib /usr/local/lib/libGeoIP.a
/bin/sh: /path/to/dir/GeoIP/GeoIP: No such file or directory
make[2]: *** [install-libLTLIBRARIES] Error 127
make[1]: *** [install-am] Error 2
make: *** [install-recursive] Error 1
[me@foobar] GeoIP-1.6.2$
Line: /bin/sh: /path/to/dir/GeoIP/GeoIP: No such file or directory
Is the broken path to: /path/to/dir/GeoIP/GeoIP c/GeoIP-1.6.2/
Removing the blank space in the folder (eg GeoIP c -> GeoIPc) where I keep the files, solved the issue.
oschwald commented
This is unfortunately a limitation with libtool. The configure script does generate a warning, although it is very easy to miss:
configure: WARNING: Libtool does not cope well with whitespace in `pwd`
iefdev commented
Aah, I see. Good to know. Thank you. 👍