LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Error Installing RTree on Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/error-installing-rtree-on-ubuntu-860510/)

phkim 02-03-2011 12:16 PM

Error Installing RTree on Ubuntu
 
Hello all,

Can someone help me fix this error? I was about to install "RTree" on Ubuntu as
a part of installing Graphserver and ended up with the following error:

-------------------------------------------
libtool: install: error: relink `libspatialindex_c.la' with the above
command before installing it
make[2]: *** [install-libLTLIBRARIES] Error 1
make[2]: Leaving directory `/home/phkim/spatialindex-src-1.6.0'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/phkim/spatialindex-src-1.6.0'
make: *** [install-recursive] Error 1
phkim@ubuntu:~/spatialindex-src-1.6.0$ easy_install RTree
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in
the installation directory:

[Errno 13] Permission denied: '/usr/local/lib/python2.6/dist-
packages/test-easy-install-13737.write-test'
-------------------------------------------

I have administrative right on the machine. It seems "Relinking" or "Library" issue. As a newbie to Ubuntu as well as Graphserver/RTree, I need to have a starting point to trouble-shoot this issue.

I greatly appreciate any help.


Thanks,

-phkim

knudfl 02-03-2011 01:57 PM

Welcome to LQ.

The install instructions
http://graphserver.github.com/graphserver/

tar xvf spatialindex-1.6.0.tar.gz
cd spatialindex-1.6.0/
./configure --prefix=/usr
make
sudo make install : Installs the libraries to /usr/lib/
sudo easy_install RTree :
/usr/lib/python2.6/site-packages/Rtree-0.6.0-py2.6.egg/rtree/*.py

..

phkim 02-05-2011 02:12 PM

Error Installing RTree on Ubuntu
 
Thanks knudfl,

The "sudo" command did a magic as you suggested to try. What does "sudo" command do? On top of that, I found the instruction in the graphserver site is missing a word in the command line (spatilindex-1.6.0 -----> spatialindex.src-1.6.0).

However, after successfully loading the RTree on Ubuntu, I tried the "A Quick Tour of the Basics" to find out the RTree is working. Everything was OK until I got this error closer to the end of it:

--------------------------------------------------------------------------------

>>> vertices[-1]
<graphserver.core.SPTVertex object at 0x7f55dbc76810>
>>> vertices[-1].payload.time
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'SPTVertex' object has no attribute 'payload'

----------------------------------------------------------------------------------

Do you have any idea about what went wrong?

-phkim


All times are GMT -5. The time now is 03:14 PM.