LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-03-2011, 12:16 PM   #1
phkim
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Rep: Reputation: 0
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
 
Old 02-03-2011, 01:57 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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

..

Last edited by knudfl; 02-03-2011 at 02:22 PM.
 
Old 02-05-2011, 02:12 PM   #3
phkim
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Original Poster
Rep: Reputation: 0
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error occurred installing Ubuntu Tweak. Hampshire Hog Linux - Software 8 01-06-2010 06:16 AM
I Get An Error Installing Flash On ubuntu... Help? 29t88 Linux - Newbie 7 09-08-2009 09:34 PM
Error installing with apt-get in Ubuntu shunpo Linux - Software 4 10-20-2008 03:16 PM
Error in installing Amsn 0.94 on Ubuntu 5.04 Nox_hand Linux - Newbie 4 09-18-2005 12:55 PM
Error installing Ubuntu mplanchant Linux - General 4 02-05-2005 04:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 12:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration