On 4/3/12 3:09 AM, David Craig wrote: > Hi again, > So I removed everything and started again ( with version 1-0-2 :) ) > but am still having trouble, GEOS_DIR seems to be set correctly but I > get the following error when trying to make the GEOS library with, > > sudo make; make install > > make[3]: Entering directory `/home/davcra/basemap-1.0.2/geos-3.3.1/src' > test -z "/home/davcra/lib" || /bin/mkdir -p "/home/davcra/lib" > /bin/sh ../libtool --mode=install /usr/bin/install -c libgeos.la > '/home/davcra/lib' > libtool: install: /usr/bin/install -c .libs/libgeos-3.3.1.so > /home/davcra/lib/libgeos-3.3.1.so > libtool: install: (cd /home/davcra/lib&& { ln -s -f libgeos-3.3.1.so > libgeos.so || { rm -f libgeos.so&& ln -s libgeos-3.3.1.so libgeos.so; > }; }) > libtool: install: /usr/bin/install -c .libs/libgeos.lai > /home/davcra/lib/libgeos.la > libtool: install: /usr/bin/install -c .libs/libgeos.a > /home/davcra/lib/libgeos.a > libtool: install: chmod 644 /home/davcra/lib/libgeos.a > libtool: install: ranlib /home/davcra/lib/libgeos.a > libtool: finish: > PATH="/usr/ncl_files/bin:/usr/ncl_files/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/davcra/.local/bin:/home/davcra/bin:/sbin" > ldconfig -n /home/davcra/lib > ---------------------------------------------------------------------- > Libraries have been installed in: > /home/davcra/lib > > If you ever happen to want to link against installed libraries > in a given directory, LIBDIR, you must either use libtool, and > specify the full pathname of the library, or use the `-LLIBDIR' > flag during linking and do at least one of the following: > - add LIBDIR to the `LD_LIBRARY_PATH' environment variable > during execution > - add LIBDIR to the `LD_RUN_PATH' environment variable > during linking > - use the `-Wl,-rpath -Wl,LIBDIR' linker flag > - have your system administrator add LIBDIR to `/etc/ld.so.conf' > > See any operating system documentation about shared libraries for > more information, such as the ld(1) and ld.so(8) manual pages. > ---------------------------------------------------------------------- > make[3]: Nothing to be done for `install-data-am'. > make[3]: Leaving directory `/home/davcra/basemap-1.0.2/geos-3.3.1/src' > make[2]: Leaving directory `/home/davcra/basemap-1.0.2/geos-3.3.1/src' > make[1]: Leaving directory `/home/davcra/basemap-1.0.2/geos-3.3.1/src' > Making install in capi > make[1]: Entering directory `/home/davcra/basemap-1.0.2/geos-3.3.1/capi' > make[2]: Entering directory `/home/davcra/basemap-1.0.2/geos-3.3.1/capi' > test -z "/home/davcra/lib" || /bin/mkdir -p "/home/davcra/lib" > /bin/sh ../libtool --mode=install /usr/bin/install -c > libgeos_c.la '/home/davcra/lib' > libtool: install: warning: relinking `libgeos_c.la' > libtool: install: (cd /home/davcra/basemap-1.0.2/geos-3.3.1/capi; > /bin/sh /home/davcra/basemap-1.0.2/geos-3.3.1/libtool --tag CXX > --mode=relink g++ -DGEOS_INLINE -pedantic -Wall -ansi -Wno-long-long > -ffloat-store -g -O2 -version-info 8:1:7 -no-undefined -o libgeos_c.la > -rpath /home/davcra/lib libgeos_c_la-geos_c.lo > libgeos_c_la-geos_ts_c.lo ../src/libgeos.la ) > mv: cannot move `libgeos_c.so.1.7.1' to `libgeos_c.so.1.7.1U': Permission > denied > libtool: install: error: relink `libgeos_c.la' with the above command > before installing it > make[2]: *** [install-libLTLIBRARIES] Error 1 > make[2]: Leaving directory `/home/davcra/basemap-1.0.2/geos-3.3.1/capi' > make[1]: *** [install-am] Error 2 > make[1]: Leaving directory `/home/davcra/basemap-1.0.2/geos-3.3.1/capi' > make: *** [install-recursive] Error 1 > > any ideas?? > thanks > D
David: Seems like a permissions problem? Any reason you're not using the libgeos yum package? -Jeff > > On 3/31/12 5:48 AM, David Craig wrote: >> Hi, I previously installed basemap by using the yum command. This >> installed version 0.99.4. I want to install the latest version so I >> can use shaded relief etc. This may be more of a linux problem but as >> I am more familiar with python than linux I thought someone here may >> be able to help. >> Following the website instructions >> (http://matplotlib.github.com/basemap/users/installing.html) I >> downloaded the latest version and untarred it. Then in the basemap >> directory (which contains geos-3.2.0) I try to set the environment >> variable GEOS_DIR to point to the location of libgeos_c and geos_c.h. >> I use the find command to locate the files, >> /find / -name geos_c.h/ returns the location of that file as >> //usr/lib/basemap-1.0.1/geos-3.2.0/capi/geos_c.h/ >> and >> /find / -name libgeos*/ >> returns >> //libgeos_c_la-geos_c.Plo >> /usr/lib/libgeos-3.3.1.so<http://libgeos-3.3.1.so> >> /usr/lib/libgeos_c.so.1.7.1 >> /usr/lib/libgeos_c.so.1/ >> so I set GEOS_DIR to /usr/lib (not sure if this is correct). >> I then cd to the basemap directory and run, >> python setup.py install >> [davcra@... basemap-1.0.1]$ sudo python setup.py install >> [sudo] password for davcra: >> checking for GEOS lib in /root .... >> checking for GEOS lib in /usr .... >> checking for GEOS lib in /usr/local .... >> checking for GEOS lib in /sw .... >> checking for GEOS lib in /opt .... >> checking for GEOS lib in /opt/local .... >> >> Can't find geos library . Please set the >> environment variable GEOS_DIR to point to the location >> where geos is installed (for example, if geos_c.h >> is in /usr/local/include, and libgeos_c is in /usr/local/lib, >> set GEOS_DIR to /usr/local), or edit the setup.py script >> manually and set the variable GEOS_dir (right after the line >> that says "set GEOS_dir manually here". >> The problem seems to be with GEOS_DIR but I am not sure what I should >> set it to. >> Thanks >> D > David: > > The basemap setup.py is assuming that the geos library is installed in > <GEOS_DIR>/lib, and geos_c.h in<GEOS_DIR>/include. You should set > GEOS_DIR to the directory you specified with --prefix when you ran > configure for geos 3.2.0 (I think the default is /usr/local). However, > it looks like you have a redhat installed geos library in /usr/lib > (seems like it is version 3.3.1). You probably could just install the > -dev package (which would put the include file in /usr/include), and > the basemap setup.py would autodetect it. > > Also, the latest version of basemap is 1.0.2, not 1.0.1. > > -Jeff > > ------------------------------------------------------------------------------ > Better than sec? Nothing is better than sec when it comes to > monitoring Big Data applications. Try Boundary one-second > resolution app monitoring today. Free. > http://p.sf.net/sfu/Boundary-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ------------------------------------------------------------------------------ Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users