[Thread Prev][Thread Next][Index]

LAS Install problem



Hello All,

Is any one working this weekend?  Its a beautiful spring like day outside in
 Tokyo and I'm in here wrestling with LAS.

I'm working on my first build of Live Access Server (LAS) and I seem to be d
own to 2 problems.  Below is my run of ./configure to build LAS.  As you can
 see at the beginning my 2 previous tries have failed to build two Perl modu
les, and I finish with a fatal error "Can't find netCDF libraries":
	DBD::mysql
	NetCDF

Here is the script of my ./configure (working in /usr/local/las/las):
------------------------------------------------------------------------
# ./configure
Searching for perl...
Location of perl executable [/usr/bin/perl]: 

Starting Perl configuration script with /usr/bin/perl...
Searching for required Perl modules...

The following Perl modules haven't been installed:
	DBD::mysql
	NetCDF
Do you want to build these modules (this can take up to thirty minutes)? [ye
s] yes

You can install these modules as:
1) part of the Perl distribution
2) part of the LAS distribution
If you choose 1), all Perl applications
(including other LAS servers) will have access to the modules.
If you choose 2), the modules will only be accessible from
this LAS server. 
Choose installation type: [1] 1

We'll need a user name, host and password to test
installation of the MySQL DBD::mysql driver.
Looking for mysqladmin program...
MySQL user name: [root] root
MySQL password: [] 
MySQL host: [localhost] localhost

Now building and installing Perl modules...
Building and installing DBD-mysql-2.1017...
make: *** No rule to make target `clean'.  Stop.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 169.
readline() on closed filehandle PIPE at Makefile.PL line 171.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 169.
readline() on closed filehandle PIPE at Makefile.PL line 171.
Failed to determine directory of mysql.h. Use

  perl Makefile.PL --cflags=-I<dir>

to set this directory. For details see the INSTALL.html file,
section "C Compiler flags" or type

  perl Makefile.PL --help
Building and installing netcdf-perl-1.2.1...

Can't find netCDF libraries
-----------------------------end of ./configure script----------------------
---------

I don't know what's going on with the "DBD::mysql" problem.  I've never used
 mysql except to install it, set up passwords and do a few functions that in
dicate that mysql is working properly.

Regarding NetCDF, I installed it according to the instructions at unidata (h
ttp://my.unidata.ucar.edu/content/software/netcdf/INSTALL.html).  The instru
ctions include information on "Setting Environment Variables" which I don't 
understand very well, and which seem to be my problem.  Below is the script 
of my NetCDF install.  As you can see I'm having trouble with identifying a 
Fortran-77 compiler and a Fortran-90 compiler.  I'm running under Red Hat Li
nux 7.2, bash shell, and I tried something like this:
export FC=/usr/bin/g77

I also tried:
export FC=F2cFortran

But it didn't solve the problem.  If anyone can tell me exactly what to ente
r to get the Fortran compiler problem solved that would be great.

Here is the script of my ./configure (working in /usr/local/netcdf/netcdf-3.
5.1/src) for NetCDF installation:
----------------------------------------------------------------------------
--------------

# ./configure --         
loading cache ./config.cache
checking for top-level source-directory
/usr/local/netcdf/netcdf-3.5.1/src
checking for m4 preprocessor
checking for m4... (cached) m4
checking m4 flags... -B10000
checking for xlc... (cached) cc
checking C compiler "cc"... works
checking how to make dependencies... false
checking for CC... (cached) c++
checking C++ compiler "c++"... works
checking how to run the C preprocessor... (cached) cc -E
checking user-defined Fortran-77 compiler "F2cFortran"... failed to compile 
test program
configure: warning: The Fortran-77 interface will not be built
checking for Fortran .F compiler... 
checking for Fortran preprocessor... cc -E
checking "" as Fortran-90 compiler... failed to build test program
checking for xlf90... no
checking for f90... no
configure: warning: Could not find working Fortran-90 compiler
configure: warning: The Fortran-90 interface will not be built
checking for nm utility
checking for nm... (cached) nm
checking nm flags... 
checking for math library
checking for tanh in -lc... (cached) no
checking for tanh in -lm... (cached) yes
checking for ar utility
checking for ar... (cached) ar
checking ar flags... cru
checking for nm utility
checking for nm... (cached) nm
checking nm flags... 
checking for ranlib... (cached) ranlib
checking for stdlib.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for strerror... (cached) yes
checking for working ftruncate()... yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for st_blksize in struct stat... (cached) yes
checking for IEEE floating point format... yes
checking for ANSI C header files... (cached) yes
checking for size_t... (cached) yes
checking for off_t... (cached) yes
checking for ssize_t... (cached) yes
checking for ptrdiff_t... (cached) yes
checking for uchar... (cached) no
checking whether char is unsigned... (cached) no
checking whether byte ordering is bigendian... (cached) no
checking size of short... (cached) 2
checking size of int... (cached) 4
checking size of long... (cached) 4
checking size of float... (cached) 4
checking size of double... (cached) 8
checking size of off_t... (cached) 4
checking size of size_t... (cached) 4
checking for manual-page index command... 
checking binary distribution directory... /home/ftp/pub/binary/dummy_system
creating ./config.status
creating macros.make
udcreating fortran/nfconfig.inc
creating libsrc/ncconfig.h
libsrc/ncconfig.h is unchanged
-----------------------------end of NetCDF ./configure script---------------
----------------


------------Here is the result of a "env" command to show the state of my en
vironment variables----------
# env
PWD=/usr/local/netcdf/netcdf-3.5.1/src
XAUTHORITY=/root/.Xauthority
WINDOWID=35652600
HOSTNAME=rdtest
SESSION_MANAGER=local/rdtest:/tmp/.ICE-unix/1219
LESSOPEN=|/usr/bin/lesspipe.sh %s
GDMSESSION=Default
GNOME_SESSION_NAME=Default
USER=root
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;
33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=0
1;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:
*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;
31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.
gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
MAIL=/var/spool/mail/root
INPUTRC=/etc/inputrc
FC=F2cFortran
BASH_ENV=/root/.bashrc
XMODIFIERS=@im=none
LANG=en_US.iso885915
COLORTERM=gnome-terminal
DISPLAY=:0
LOGNAME=root
SHLVL=5
GDM_LANG=en_US.iso885915
USERNAME=root
SHELL=/bin/bash
HISTSIZE=1000
HOME=/root
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
TERM=xterm
PATH=/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11:/usr/local/b
in:/usr/bin:/usr/X11R6/bin:/root/bin:/root/bin
_=/usr/bin/env
OLDPWD=/usr/local/netcdf/netcdf-3.5.1
----------------------------------end of env--------------------------------
-------------

I also tried to solve the NetCDF problem by installing NetCDF as an rpm file
 (netcdf-3.5.0-2.i386.rpm but that didn't fix the problem.

Thanks very much for your help.

Ben




[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement