wviewweather.com Forum Index wviewweather.com
wview and Weather Topics
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Installation difficulties with 1.8.6 on RH7.3

 
Post new topic   Reply to topic    wviewweather.com Forum Index -> wview Installation
View previous topic :: View next topic  
Author Message
bodemory



Joined: 06 Dec 2005
Posts: 43

PostPosted: Tue Dec 06, 2005 10:04 am    Post subject: Installation difficulties with 1.8.6 on RH7.3 Reply with quote

Hi all,

First of all, many thanks for this software!
I must admit I'm a newbie in the linux world so what is following
is probably easy to solve.
I'm following the user manual for installation process.
During the "make sequence" I'm getting this :

Code:
In file included from glmultichart.h:26,
                 from htmlGenerate.h:51,
                 from ../htmlgenerator/htmlMgr.c:37:
glchart.h:26:16: gd.h: No such file or directory
In file included from ../htmlgenerator/htmlMgr.c:38:
glbucket.h:26:16: gd.h: No such file or directory
make[2]: *** [htmlMgr.o] Error 1
make[2]: Leaving directory `/.automount/ofxb1/root/home/demory/wview-1.8.6/htmlgenerator'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/.automount/ofxb1/root/home/demory/wview-1.8.6'
make: *** [all] Error 2


During the ./configure I noted this (amongst a few other "no") :

Code:
checking for gdImageCreate in -lgd... no


I thought it was related to libgd but :

Code:
rpm -qa |grep libgd
libgd-2.0.33-3


Any help would be greatly appreciated.

Thanks,
Brice, Switzerland
Back to top
View user's profile Send private message Visit poster's website
bhnb



Joined: 28 Nov 2005
Posts: 127

PostPosted: Tue Dec 06, 2005 11:16 am    Post subject: Reply with quote

Do you need to set LD_LIBRARY_PATH=/usr/local/lib ?
Back to top
View user's profile Send private message
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Tue Dec 06, 2005 12:45 pm    Post subject: Reply with quote

Short answer is it is not finding the libgd headers...
An rpm installation probably placed it somewhere other than /usr/local.

You will need to find out where gd.h and libgd.so are (i.e. /usr/include and /usr/lib), then issue the following commands as root before configuring and building wview:

export CFLAGS=-I/usr/include
export LDFLAGS=-L/usr/lib

(replace "/usr/include" and "/usr/lib" with wherever they are found).

To find them:
cd /
find . -name "libgd.so*" -print
find . -name "gd.h" -print

Why in the world are you using such an old linux distribution anyway?

Mark
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bodemory



Joined: 06 Dec 2005
Posts: 43

PostPosted: Thu Dec 08, 2005 7:24 am    Post subject: Reply with quote

Thank you for your answer.

Actually I get a related problem, after having followed your procedure :

Code:
In file included from glchart.h:26,
                 from glmultichart.h:26,
                 from htmlGenerate.h:51,
                 from ../htmlgenerator/htmlMgr.c:37:
/usr/include/gd.h:25:19: gd_io.h: No such file or directory
make[2]: *** [htmlMgr.o] Error 1
make[2]: Leaving directory `/.automount/ofxb1/root/home/demory/wview-1.8.6/htmlgenerator'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/.automount/ofxb1/root/home/demory/wview-1.8.6'
make: *** [all] Error 2


and I still get this one :
Code:
 checking for gdImageCreate in -lgd... no


I've uninstalled and installed again the gd package.

Quote:
Why in the world are you using such an old linux distribution anyway?


It has been installed over a network of an astronomical observatory a few years ago. But we're planning to move to Ubuntu in the next months.

Thanks for your help Mark.
Back to top
View user's profile Send private message Visit poster's website
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Thu Dec 08, 2005 7:40 am    Post subject: Reply with quote

OK, then you need to find gd_io.h in the same manner as described before. You might want to provide the entire "gcc ..." line so we could see what the include paths are for the build. On my Fedora Core 4 machine (rpm install of gd), all of the headers for gd are in /usr/include (gd.h and gd_io.h).

If you do find it in a different directory, add that directory to the "CFLAGS" export statement.

I wonder if you have a full install of libgd or just the shared library install for run time use. If you don't have gd_io.h anywhere on your system, it is not a full development install of gd.

Mark
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bodemory



Joined: 06 Dec 2005
Posts: 43

PostPosted: Thu Dec 08, 2005 10:35 am    Post subject: Reply with quote

Thanks for your fast response.
I uninstalled and reinstalled libgd correctly this time, I found gd.h and gd_io.h.
Then I entered as root:
Code:
export CFLAGS=-I/usr/local/include
export LDFLAGS=-L/usr/local/lib


But as I launched ./configure, I got (seems related to the CFLAGS/LDFLAGS change as I haven't done anything else):

Code:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.


And the config.log :

Code:
[demory@ofxb5 wview-1.8.6]$ cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by wview configure 1.8.6, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = ofxb5.ofxbnet
uname -m = i686
uname -r = 2.4.18-3
uname -s = Linux
uname -v = #1 Thu Apr 18 07:32:41 EDT 2002

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /net/ofxb1/home/demory/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1384: checking for a BSD-compatible install
configure:1439: result: /usr/bin/install -c
configure:1450: checking whether build environment is sane
configure:1493: result: yes
configure:1558: checking for gawk
configure:1574: found /bin/gawk
configure:1584: result: gawk
configure:1594: checking whether make sets $(MAKE)
configure:1614: result: yes
configure:1855: checking for style of include used by make
configure:1883: result: GNU
configure:1954: checking for gcc
configure:1970: found /usr/bin/gcc
configure:1980: result: gcc
configure:2224: checking for C compiler version
configure:2227: gcc --version </dev/null >&5
2.96
configure:2230: $? = 0
configure:2232: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)
configure:2235: $? = 0
configure:2237: gcc -V </dev/null >&5
gcc: argument to `-V' is missing
configure:2240: $? = 1
configure:2263: checking for C compiler default output file name
configure:2266: gcc -I  -L/usr/lib conftest.c  >&5
configure:2269: $? = 0
configure:2315: result: a.out
configure:2320: checking whether the C compiler works
configure:2326: ./a.out
configure:2329: $? = 0
configure:2346: result: yes
configure:2353: checking whether we are cross compiling
configure:2355: result: no
configure:2358: checking for suffix of executables
configure:2360: gcc -o conftest -I  -L/usr/lib conftest.c  >&5
configure:2363: $? = 0
configure:2388: result:
configure:2394: checking for suffix of object files
configure:2415: gcc -c -I  conftest.c >&5
gcc: No input files
configure:2418: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "wview"
| #define PACKAGE_TARNAME "wview"
| #define PACKAGE_VERSION "1.8.6"
| #define PACKAGE_STRING "wview 1.8.6"
| #define PACKAGE_BUGREPORT "mteel@users.sourceforge.net"
| #define PACKAGE "wview"
| #define VERSION "1.8.6"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2432: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=-I
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_HOST_IS_BIGENDIAN_set=
ac_cv_env_HOST_IS_BIGENDIAN_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-L/usr/lib
ac_cv_env_USE_DATABASE_set=
ac_cv_env_USE_DATABASE_value=
ac_cv_env_USE_WUNDERGROUND_set=
ac_cv_env_USE_WUNDERGROUND_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /net/ofxb1/home/demory/wview-1.8.6/missing --run aclocal-1.9'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /net/ofxb1/home/demory/wview-1.8.6/missing --run tar'
AUTOCONF='${SHELL} /net/ofxb1/home/demory/wview-1.8.6/missing --run autoconf'
AUTOHEADER='${SHELL} /net/ofxb1/home/demory/wview-1.8.6/missing --run autoheader'
AUTOMAKE='${SHELL} /net/ofxb1/home/demory/wview-1.8.6/missing --run automake-1.9'
AWK='gawk'
CC='gcc'
CCDEPMODE=''
CFLAGS='-I'
CPP=''
CPPFLAGS=''
CXX=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DB_MYSQL_FALSE=''
DB_MYSQL_TRUE='#'
DB_PGRESQL_FALSE=''
DB_PGRESQL_TRUE='#'
DEFS=''
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
HOST_IS_BIGENDIAN=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
IS_BIGENDIAN_FALSE=''
IS_BIGENDIAN_TRUE=''
LDFLAGS='-L/usr/lib'
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /net/ofxb1/home/demory/wview-1.8.6/missing --run makeinfo'
OBJEXT=''
PACKAGE='wview'
PACKAGE_BUGREPORT='mteel@users.sourceforge.net'
PACKAGE_NAME='wview'
PACKAGE_STRING='wview 1.8.6'
PACKAGE_TARNAME='wview'
PACKAGE_VERSION='1.8.6'
PATH_SEPARATOR=':'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
USE_DATABASE='0'
USE_WUNDERGROUND=''
VERSION='1.8.6'
WUNDERGROUND_FALSE=''
WUNDERGROUND_TRUE=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='NONE'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/net/ofxb1/home/demory/wview-1.8.6/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE "wview"
#define PACKAGE_BUGREPORT "mteel@users.sourceforge.net"
#define PACKAGE_NAME "wview"
#define PACKAGE_STRING "wview 1.8.6"
#define PACKAGE_TARNAME "wview"
#define PACKAGE_VERSION "1.8.6"
#define VERSION "1.8.6"

configure: exit 1


What am I doing wrong ?

Thank you for your time !
Brice

PS : I installed libgd without fontconfig because even the oldest version of this one implies to update glibc etc. installed on the system ! I think it becomes important to install an updated distro like ubuntu !
Back to top
View user's profile Send private message Visit poster's website
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Thu Dec 08, 2005 11:04 am    Post subject: Reply with quote

I have no idea, maybe you ran configure as root before and now you are not, etc.

Just blow away the wview-1.8.6 directory, extract it again and start over.

That is not related to the CFLAGS, etc. it is a standard internal test of autoconf and has nothing specifically to do with wview.

Did you install gd to the /usr/local prefix this time? That is implied by your CFLAGS,etc. settings...

Mark
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bodemory



Joined: 06 Dec 2005
Posts: 43

PostPosted: Thu Dec 08, 2005 11:11 am    Post subject: Reply with quote

OK, solved !

I entered :
Code:
unset CFLAGS
unset LDFLASG
./configure


And everything worked smoothly ! The critical point was apparently
to desinstall and reinstall a clean libgd.
Now it is compiled, I'll get to a more interesting step tomorrow : configuration.

Many thanks, Mark ! You'll add a new wview station in your links the next few days Smile

Cheers
Brice
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    wviewweather.com Forum Index -> wview Installation All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group