WebFaction
Community site: login faq

I'm trying to install libspatialindex on my machine. This is what I've tried:

cd ~/src
wget http://download.osgeo.org/libspatialindex/spatialindex-src-1.8.5.tar.gz
tar xzvf spatialindex-src-1.8.5.tar.gz
cd spatialindex-src-1.8.5
./configure --prefix=$HOME
make
make install

But at this point I get the following error:

libtool: install: /usr/bin/install -c .libs/libspatialindex.so.4.0.1 /home/annaps/lib/libspatialindex.so.4.0.1
libtool: install: (cd /home/annaps/lib && { ln -s -f libspatialindex.so.4.0.1 libspatialindex.so.4 || { rm -f libspatialindex.so.4 && ln -s libspatialindex.so.4.0.1 libspatialindex.so.4; }; })
libtool: install: (cd /home/annaps/lib && { ln -s -f libspatialindex.so.4.0.1 libspatialindex.so || { rm -f libspatialindex.so && ln -s libspatialindex.so.4.0.1 libspatialindex.so; }; })
libtool: install: /usr/bin/install -c .libs/libspatialindex.lai /home/annaps/lib/libspatialindex.la
libtool: install: error: cannot install `libspatialindex_c.la' to a directory not ending in /usr/local/lib
make[2]: *** [install-libLTLIBRARIES] Error 1
make[2]: Leaving directory `/home/annaps/src/spatialindex-src-1.8.5'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/annaps/src/spatialindex-src-1.8.5'
make: *** [install-recursive] Error 1

Obviously I can't install to /usr/local/lib on a shared machine, so is there any way I can get round this to install libspatialindex?

asked 19 Apr '15, 23:11

AnnaPS
10711020
accept rate: 100%

edited 19 Apr '15, 23:16


I tried the steps you showed under a test account on your server, and they worked for me:

mkdir -p ~/src
cd ~/src
wget http://download.osgeo.org/libspatialindex/spatialindex-src-1.8.5.tar.gz
tar xzvf spatialindex-src-1.8.5.tar.gz
cd spatialindex-src-1.8.5
./configure --prefix=$HOME
make
make install

Can you try creating a new SSH user and performing this install under the fresh user account created?

My guess is that this will work, which means that there's something inconsistent about your main account- perhaps you didn't install make clean (or make distclean) before running ./configure --prefix=$HOME a second time after running it incorrectly a first time. Or, perhaps you have another configuration file somewhere (or perhaps an environment variable) that's affecting the configure script. In any case, it's not an issue with the approach, and clearing out the existing install and trying again from a fresh environment may help.

permanent link

answered 20 Apr '15, 04:34

ryans ♦♦
5.0k93360
accept rate: 43%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×102

question asked: 19 Apr '15, 23:11

question was seen: 1,552 times

last updated: 20 Apr '15, 04:34

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM