[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: linux binaries 2.4
- To: stef <sepd2003@yahoo.com>, Gstat-info <gstat-info@geog.uu.nl>
- Subject: Re: linux binaries 2.4
- From: "Edzer J. Pebesma" <e.pebesma@geog.uu.nl>
- Date: Mon, 08 Mar 2004 17:52:18 +0100
- Delivered-to: gstat-info@geog.uu.nl
- In-reply-to: <20040308163009.50774.qmail@web14712.mail.yahoo.com>
- References: <20040308163009.50774.qmail@web14712.mail.yahoo.com>
- Sender: owner-gstat-info@pop.geog.uu.nl
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1
I think it's not really a gstat FAQ, but rather a more
general FAQ when working with the command line. Try:
echo $PATH
(or issue the command path on a windows command prompt)
and you will see the order of directories that will be
searched through for a binary, say gstat, to execute.
Usually, on unix/linux systems, . (the current working
directory) is not in it. So you need ./gstat to execute
the gstat in your pwd.
Good luck with your paper ;-)
--
Edzer
stef wrote:
Dear Edzer,
Thank you! we are successfull! Would you mind
providing me with a brief summary of your logic.. why
did we use "which gstat"? I will be happy to write
this up in the FAQ and submit it to you for the
website
Again, Thank you for your time.
Best Regards,
Stef
--- "Edzer J. Pebesma" <e.pebesma@geog.uu.nl> wrote:
---------------------------------
OK, I see your problem; please also do a
make install
in the gstat source tree. Then it should work.
If not: do, on the GRASS prompt a
which gstat
which will tell you where on your search path
gstat is, that you are calling. Remove it if it's an
unwanted version.
--
Edzer
stef wrote:
Dear Edzer,Thanks for helping me..This is what I have
done today.1) reloaded/compiled grass2)
reloaded/compiled gstat --with-grass (I haveincluded
this)3) ./src/gstat -v // shows us that there are the
grasslibraries (I have included this)4) The grass
prompt gstat -v shows nothing (I haveincluded this at
the bottom)[root@localhost gstat-2.4.3]# lsaclocal.m4
cmd control.deb deb include
makefile.cyg meschach readme.dosart
configure COPYING doc install-sh
makefile.in qt Scgi configure.in
Copyright FILES lib makefile.pcr README
src[root@localhost gstat-2.4.3]# ./configure
--with-grasschecking for gcc... gccchecking for C
compiler default output... a.outchecking whether the C
compiler works... yeschecking whether we are cross
compiling... nochecking for suffix of
executables...checking for suffix of object files...
ochecking whether we are using the GNU C
compiler...yeschecking whether gcc accepts -g...
yeschecking for ranlib... ranlibchecking for a
BSD-compatible install.../usr/bin/install -cchecking
how to run the C preprocessor... gcc -Echecking for
ANSI C header files... yeschecking for gcc option to
accept ANSI C...checking for sys/types.h...
yeschecking for sys/stat.h... yeschecking for
stdlib.h... yeschecking for string.h... yeschecking
for memory.h... yeschecking for strings.h...
yeschecking for inttypes.h... yeschecking for
stdint.h... yeschecking for unistd.h... yeschecking
for function prototypes... yeschecking for gcc option
to accept ANSI C... noneneededchecking for an ANSI
C-conforming const... yeschecking for flex...
flexchecking for yywrap in -lfl... yeschecking lex
output file root... lex.yychecking whether yytext is a
pointer... yeschecking for bison... bison -ychecking
stat.h usability... nochecking stat.h presence...
nochecking for stat.h... nochecking for unistd.h...
yeschecking getopt.h usability... yeschecking getopt.h
presence... yeschecking for getopt.h... yeschecking
whether time.h and sys/time.h may both beincluded...
yeschecking for working memcmp... yeschecking for
vprintf... yeschecking for _doprnt... nochecking for
strstr... yeschecking for strtod... yeschecking for
strtol... yeschecking for popen... yeschecking for
drand48... yeschecking for gettimeofday... yeschecking
for snprintf... yeschecking for vsnprintf...
yeschecking for getopt_long... yeschecking for
getopt... yeschecking whether byte ordering is
bigendian... nochecking for main in -lncurses...
yeschecking for gdImagePng in -lgd... yeschecking for
main in -lpng... yeschecking for main in -lz...
yeschecking for main in -lnetcdf... nochecking for
GDALAllRegister in -lgdal... nochecking for QRfactor
in -lmeschach... nochecking for MgetVersion in
-lcsf... nochecking for G_gisinit in -lgrass_gis...
nochecking for G_gisinit in -lgis... yeschecking for
main in -lgsl... noconfigure: creating
./config.statusconfig.status: creating
makefileconfig.status: creating
src/makefileconfig.status: creating
doc/tex/makefileconfig.status: creating
src/config.h[root@localhost gstat-2.4.3]# make(cd
meschach; \./configure --cache-file=../config.cache;
\make basic; \cp -p err.h machine.h matrix.h matrix2.h
meminfo.hsparse.h sparse2.h ../include)creating cache
../config.cachechecking for gcc... gccchecking whether
the C compiler (gcc ) works... yeschecking whether
the C compiler (gcc ) is across-compiler...
nochecking whether we are using GNU C... yeschecking
whether gcc accepts -g... yeschecking how to run the C
preprocessor... gcc -Echecking for AIX... nochecking
for minix/config.h... nochecking for POSIXized ISC...
nochecking for ranlib... ranlibchecking for
memory.h... yeschecking for ANSI C header files...
yeschecking for gcc option to accept ANSI C...checking
for function prototypes... yeschecking for working
const... yeschecking for complex.h... yeschecking for
malloc.h... yeschecking for varargs.h... yeschecking
for size_t... yeschecking for working const...
(cached) yeschecking whether byte ordering is
bigendian... nochecking for u_intcomputing machine
epsilon(s)gcc -o macheps dmacheps.cgcc -o macheps
fmacheps.ccomputing M_MAX_INTgcc -o maxint
maxint.cchecking char \\0 vs. float zeroschecking for
bcopy... yeschecking for bzero... yeschecking for
function prototypeschecking for function prototypes in
structuresupdating cache ../config.cachecreating
./config.statuscreating makefilecreating
machine.hmake[1]: Entering
directory`/usr/local/gstat-2.4.3/meschach'gcc -c -O
-DHAVE_CONFIG_H copy.cgcc -c -O -DHAVE_CONFIG_H
err.cgcc -c -O -DHAVE_CONFIG_H matrixio.cgcc -c -O
-DHAVE_CONFIG_H memory.cgcc -c -O -DHAVE_CONFIG_H
vecop.cgcc -c -O -DHAVE_CONFIG_H matop.cgcc -c -O
-DHAVE_CONFIG_H pxop.cgcc -c -O -DHAVE_CONFIG_H
submat.cgcc -c -O -DHAVE_CONFIG_H init.cgcc -c -O
-DHAVE_CONFIG_H otherio.cgcc -c -O -DHAVE_CONFIG_H
machine.cgcc -c -O -DHAVE_CONFIG_H ivecop.cgcc -c -O
-DHAVE_CONFIG_H version.cgcc -c -O -DHAVE_CONFIG_H
meminfo.cgcc -c -O -DHAVE_CONFIG_H memstat.car ru
meschach.a copy.o err.o matrixio.o memory.ovecop.o
matop.o pxop.o submat.o init.o otherio.omachine.o
ivecop.o version.o meminfo.o memstat.oranlib
meschach.agcc -c -O -DHAVE_CONFIG_H lufactor.cgcc -c
-O -DHAVE_CONFIG_H chfactor.cgcc -c -O
-DHAVE_CONFIG_H qrfactor.cgcc -c -O -DHAVE_CONFIG_H
solve.cgcc -c -O -DHAVE_CONFIG_H norm.cgcc -c -O
-DHAVE_CONFIG_H hsehldr.car ru meschach.a lufactor.o
chfactor.o qrfactor.osolve.o norm.o hsehldr.oranlib
meschach.amake[1]: Leaving
directory`/usr/local/gstat-2.4.3/meschach'cp
meschach/meschach.a lib/libmeschach.a(cd src;
make)make[1]: Entering
directory`/usr/local/gstat-2.4.3/src'gcc -c -g -O2
-I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H block.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H data.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H direct.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H fig.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H fit.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H getest.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H gls.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H glvars.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H gstat.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H lex.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H lm.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H map2fig.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H map2gd.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H mapio.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H maputils.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H msim.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H nsearch.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H ossfim.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H palet.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H parse.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H plot.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H polygon.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H pqueue.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H predict.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H random.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H read.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H reml.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H report.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H sample.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H select.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H sem.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H sem_main.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H sim.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H stat.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H ui.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H userio.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H utils.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H vario.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H vario_fn.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H vario_io.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H writecmd.cgcc -c -g -O2 -I../include
-I/usr/include/ncurses-I/usr/local/grass5/include
-DHAVE_CONFIG_H xvalid.cgcc -o gstat block.o data.o
direct.o fig.o fit.ogetest.o gls.o glvars.o gstat.o
lex.o lm.o map2fig.omap2gd.o mapio.o maputils.o msim.o
nsearch.o ossfim.opalet.o parse.o plot.o polygon.o
pqueue.o predict.orandom.o read.o reml.o report.o
sample.o select.osem.o sem_main.o sim.o stat.o ui.o
userio.o utils.ovario.o vario_fn.o vario_io.o
writecmd.o xvalid.o -L../lib -lmeschach -lncurses
-lgd -lpng -lz-L/usr/local/grass5/lib -lgis -ldatetime
-lz -lmmake[1]: Leaving
directory`/usr/local/gstat-2.4.3/src'[root@localhost
gstat-2.4.3]# ./src/gstat -vcompiled on: Mar
7 2004with libraries: gd (png) grass ncurseslast
modified on: Sun Jan 4 20:16:07 CET 2004gstat
home page: http://www.gstat.org/questions, bugs
etc. mailto:gstat-info@geog.uu.nlgstat: Linux version
2.4.3 (04 January 2004)Copyright (C) 1992, 2004 Edzer
J. PebesmaUpdates, manuals, sources:
http://www.gstat.org/usage: gstat [options] [file
[file ...]]gstat: no command file[root@localhost
gstat-2.4.3]#but.. when I load %grass5, I still cannot
see thegstat libraries that I see in src:This GRASS
5.0.3 release is coordinated and producedby theGRASS
Development Team headquartered at ITC-irst(Trento,
Italy) withworldwide support and further development
siteslocated at BaylorUniversity and the University of
Illinois (U.S.A.).This program is distributed in the
hope that it willbe useful, butWITHOUT ANY WARRANTY;
without even the impliedwarranty ofMERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNUGeneral
Public License for more details.This version running
thru the Bash Shell (/bin/bash)Help is available with
the command: g.helpSee the licence terms with:
g.version -cStart the graphical user
interface with: tcltkgrass&When ready to quit enter:
exitGRASS:/usr/local/gstat-2.4.3 > gstat
-vcompiled on: Mar 3 2003with libraries:
csf ncurseslast modified on: Mon Mar 3 16:06:47
CET 2003gstat home page:
http://www.gstat.org/questions, bugs etc.
mailto:gstat-info@geog.uu.nlgstat: Linux version 2.4.0
(03 March 2003)Copyright (C) 1992, 2003 Edzer J.
PebesmaUpdates, manuals and source
code:http://www.gstat.org/usage: gstat [options] [file
[file ...]]gstat: no command
fileGRASS:/usr/local/gstat-2.4.3 >--- "Edzer J.
Pebesma" <e.pebesma@geog.uu.nl>
wrote:--------------------------------- Stef,
you're on the wrong track.Could you do a clean install
of the latest gstatsourcecode, and send me the
complete output of the followingthree commands, given
in the gstat source tree:./configure
--with-grassmake./src/gstat -vPlease leave gstat-info
out of this; we can informthem once we've made some
progress.--Edzer__________________________________Do
you Yahoo!?Yahoo! Search - Find what you#8217;re
looking for fasterhttp://search.yahoo.com
__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com