newbie question and problem installing basemap

 
Thread Tools Search this Thread
Operating Systems Linux Fedora newbie question and problem installing basemap
# 1  
Old 02-25-2012
newbie question and problem installing basemap

Hi,
Bit of a newbie question first. I have fedora installed as a partition on a lenovo G570 laptop. When I type
Code:
uname -a

I get,
Code:
Linux David 3.2.6-3.fc16.i686 #1 SMP Mon Feb 13 20:52:22 UTC 2012 i686 i686 i386 GNU/Linux

the man page tells me this is
sysname = Linux
nodename = David
release = 3.2.6-3.fc16.i686
version = #1 SMP Mon Feb 13 20:52:22 UTC 2012
machine = i686
my first question is why does i386 appear with uname -a??


The real problem I have though is installing basemap (a python mapping package). I've been following the instructions found on the here. I already had the pre-requisites installed so just downloaded and untared basemap-1.0.2, then cd to the directory.
To install the geos library it tells you to set the environment variable to the path to the directory containing both libgeos_c and geos_c.h. So I used find -a to locate them.
Code:
[davcra@David basemap-1.0.2]$ find -name geos_c.h
 ./geos-3.3.1/capi/geos_c.h
 [davcra@David basemap-1.0.2]$ find -name libgeos_c
 [davcra@David basemap-1.0.2]$

as you can see the second one returns nothing.
I tried setting the environment variable to
Code:
GEOS_DIR=/home/davcra/basemap-1.0.2/geos-3.3.1/capi/

but when I run the following
Code:
./configure --prefix=$GEOS_DIR

I get this error,


Code:
checking build system type... i686-pc-linux-gnu
 checking host system type... i686-pc-linux-gnu
 checking target system type... i686-pc-linux-gnu
 checking for a BSD-compatible install... /usr/bin/install -c
 checking whether build environment is sane... yes
 checking for a thread-safe mkdir -p... /bin/mkdir -p
 checking for gawk... gawk
 checking whether make sets $(MAKE)... yes
 checking whether to enable maintainer-specific portions of Makefiles... no
 checking for gcc... gcc
 checking whether the C compiler works... no
 configure: error: in `/home/davcra/basemap-1.0.2/geos-3.3.1':
 configure: error: C compiler cannot create executables
 See `config.log' for more details

No idea what to do now and hoping someone can help!
thanks
David
# 2  
Old 02-25-2012
you need to provide the path name under which fnd will make its search .

try like the below one
Code:
find ~ -name libgeos_c -print

# 3  
Old 02-26-2012
Hi, I tried
Code:
find ~ -name libgeos_c -print

but still doesnt return anything.

---------- Post updated at 05:47 PM ---------- Previous update was at 04:58 PM ----------

Hi again,
so the solution is to ignore the website and just
Quote:
yum install python-basemap.i686
---------- Post updated 26-02-12 at 04:52 PM ---------- Previous update was 25-02-12 at 05:47 PM ----------

then again maybe it isnt,Smilie
I used yum to install basemap but it doesnt seem to have installed the latest version. yum info gives,
Code:
[davcra@David ~]$ sudo yum info python-basemap.i686
Loaded plugins: langpacks, presto, refresh-packagekit
Installed Packages
Name        : python-basemap
Arch        : i686
Version     : 0.99.4
Release     : 12.fc16
Size        : 1.6 M
Repo        : installed
From repo   : fedora
Summary     : Plots data on map projections (with continental and political
            : boundaries)
URL         : Toolkits — Matplotlib v1.0.1 documentation
License     : LGPLv2+
Description : Basemap is a matplotlib toolkit that allows you to plot data on
            : map projections (with continental and political boundaries).

but sourceforge has basemap-1.0.2, which is what I need. Anyone know why that might be?? and if I can use yum to get the latest version.
Thanks
D
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Problem installing basemap

Hi, I previously installed basemap by using the yum command. This installed version 0.99.4. I want to install the latest version but am having some problems. My system info is, $ uname -a Linux David 3.3.0-4.fc16.i686 #1 SMP Tue Mar 20 18:45:14 UTC 2012 i686 i686 i386 GNU/Linuxyum doesnt seem to... (2 Replies)
Discussion started by: davcra
2 Replies

2. Shell Programming and Scripting

What does this do (newbie question)...

I was looking through some code online and came accross this... ls *.txt | grep text1 | cat file1 – file2 | `echo wc –l` I know what "ls|grep text1" does and I know a word count gets echoed but beyond that I am confused. Please use layman terms as much as possible as I am a newbie. (8 Replies)
Discussion started by: elohssa
8 Replies

3. Shell Programming and Scripting

perl newbie . &&..programming newbie (question 2)

Hello everyone, I am having to do a lot of perl scripting these days and I am learning a lot. I have this problem I want to move files from a folder and all its sub folders to one parent folder, they are all .gz files.. there is folder1\folder2\*.gz and there are about 50 folders... (1 Reply)
Discussion started by: xytiz
1 Replies

4. UNIX for Dummies Questions & Answers

UNIX newbie NEWBIE question!

Hello everyone, Just started UNIX today! In our school we use solaris. I just want to know how do I setup Solaris 10 not the GUI one, the one where you have to type the commands like ECHO, ls, pwd, etc... I have windows xp and I also have vmware. I hope I am not missing anything! :p (4 Replies)
Discussion started by: Hanamachi
4 Replies

5. Solaris

Installing en_US.UTF-8 on Solaris 10. Newbie.

Hi, I am looking to install en_US.UTF-8 on to a solaris 10 Sparc server. Is it possible to install this character set from the iso image? I have an iso image only (sol_10_u.iso) on CD. I have used the command below but with no success. Any pointers to get this installed would be greatly... (5 Replies)
Discussion started by: gwhelan
5 Replies

6. Programming

Newbie question

Dear all, I have a question related to parallel programing and if you can give me some hints on how to deal with it, it would be really great. I would like to run a small application on a supercompter of 128 CPUs. Unfortunately, on this machine only jobs which require 32 CPUs are allowed to... (1 Reply)
Discussion started by: Eduard
1 Replies

7. Shell Programming and Scripting

newbie question

hey all, I have repeatedly seen scripts containing the following syntax, grep "hello" $myfile >> $log 2>&1 can anyone explain exactly what "2>&1" mean? THANK YOU (4 Replies)
Discussion started by: mpang_
4 Replies

8. Shell Programming and Scripting

Newbie question

Hello, I have text file while looks this test1 test2 test3 test4 test5 test6 and if I want to parse it and make new file which would like this test1 test2 test3 test4 test5 test6 How can I do this in korn shell script Thanks (9 Replies)
Discussion started by: peeyush_23
9 Replies

9. UNIX for Dummies Questions & Answers

Newbie Question

Hi, I have a file, that is delimited by :: and the purpose of this file is none of your business. ;) There are about 65000 lines in this file, and there are lines that I would like to remove. About 45000 of them. Is there some sort of commands that I can run, to remove word(s) from this... (4 Replies)
Discussion started by: th3gh05t
4 Replies

10. UNIX Desktop Questions & Answers

Newbie Question

I am fairly new to *nix/linux and I have just installed SuSe 8.2. I am wondering what skills would be good to learn. I know that I will need to learn how to write scripts, but what scripting languages should I learn. I greatly appreciate any and all comments. ... (5 Replies)
Discussion started by: Ntalektual
5 Replies
Login or Register to Ask a Question