View previous topic :: View next topic |
Author |
Message |
zarac
Joined: 17 Sep 2006 Posts: 6 Location: Colorado Foothills
|
Posted: Sun Sep 17, 2006 10:22 am Post subject: Missing file on MacOS... |
|
|
Trying to install wview 3.2.1 on a Mac Mini PPC running MacOS 10.4.7, I get the following error at step 6 of http://www.wviewweather.com/release-notes/wview-Quick-Start-MacOSX.html:
Code: | In file included from ./glmultichart.h:26,
from ./htmlGenerate.h:51,
from ../htmlgenerator/htmlMgr.c:37:
./glchart.h:26:16: error: gd.h: No such file or directory |
There is lots of other output, but this seems to be where things go awry. I've searched high and low, but did not find gd.h - any suggestions where it might be hidding?
Ric Turley
Last edited by zarac on Sat Sep 30, 2006 12:45 pm; edited 1 time in total |
|
Back to top |
|
|
Lynn P.
Joined: 02 Sep 2006 Posts: 8 Location: Healdsburg, CA
|
Posted: Sat Sep 30, 2006 10:19 am Post subject: |
|
|
Ric,
Did radlib install OK for you? In the MacOSX requirement section of the Mac Quick Start it indicates that Darwin Ports takes some time to load but my experence was that radlib took up to 2 hour to load on my older slower machine. I had aborted the load several times thinking that something was wrong until I just let it run to see how long it would be before any message window would pop up.
I had attempted to load wview before radlib was loaded properly and came up with missing files myself. At one time I think gd. was one of them. Also png was not recognized. All that seemed to clear up after a lengthy radlib install.
Good luck,
Lynn P.
Running OS 10.3.9 on a Blueberry Imac |
|
Back to top |
|
|
zarac
Joined: 17 Sep 2006 Posts: 6 Location: Colorado Foothills
|
Posted: Sat Sep 30, 2006 12:43 pm Post subject: |
|
|
Lynn P. wrote: | Did radlib install OK for you? |
Yes, it seems to have installed OK - no error messages I can see and I did let it complete.
Thanks for your reply,
Ric |
|
Back to top |
|
|
Lynn P.
Joined: 02 Sep 2006 Posts: 8 Location: Healdsburg, CA
|
Posted: Sat Sep 30, 2006 1:44 pm Post subject: |
|
|
Ric,
Did Darwin Ports install OK and update OK?
After doing the step 5 ./configure --prefix=/opt/local --enable-station-[type]
Try make check before doing the sudo install and see if that may give you any more clues.
Lynn |
|
Back to top |
|
|
Lynn P.
Joined: 02 Sep 2006 Posts: 8 Location: Healdsburg, CA
|
Posted: Sat Sep 30, 2006 3:05 pm Post subject: |
|
|
Ric,
I looked at some of the other post when I was installing wview. There is a post titled "Experience with wview/Postgres/OS X" that has some comments about installing on Tiger. The reference is in regards to memory alocation in the kearnel. Also there is a reference to libgd and it being loaded from Darwin Ports.
The post was on page 2.
Check it out and see if that will help.
Lynn |
|
Back to top |
|
|
zarac
Joined: 17 Sep 2006 Posts: 6 Location: Colorado Foothills
|
Posted: Sun Dec 10, 2006 11:18 am Post subject: New attempt failed... |
|
|
I am giving this another try with a brand new install of Mac OS 10.4.8 on the Mac Mini PPC; on the first attempt I got to step 6 of the "Quick Start Guide for Macintosh" by dropping MySQL support although it is the most alluring wview feature. Once the data is in a MySQL table, I can display my own stats on my Ruby on Rails website.
This time, I am stuck at step 3 trying to include MySQL support. Step 2 was successful using:
Code: | ./configure --prefix=/opt/local --enable-mysql |
but step 3 fails - the trouble starts here: Code: | ../database/mysql/my_database.c:48:19: error: mysql.h: No such file or directory
|
mysql.h does exist at /usr/local/mysql/include/mysql.h and libmysqlclient.a at /usr/local/mysql/lib/libmysqlclient.a. Reinstalling MySQL in /opt/local/ didn't help, so I modified my_database.c:48 to read Code: | #include </usr/local/mysql/include/mysql.h> |
That got me further, but still an error:
Code: | /usr/bin/ld: warning -L: directory name (/opt/local/lib/mysql) does not exist
/usr/bin/ld: warning -L: directory name (/usr/lib/mysql) does not exist
/usr/bin/ld: can't locate file for: -lmysqlclient
collect2: ld returned 1 exit status |
I set links to MySQL in /opt/local/lib/ and /usr/lib/, but it still can't locate lmysqlclient.
This really looks like the package I want to use and WeatherLink is a huge resource hog with much less functionality. I am just a dumb Mac user, but any suggestions how to get past this hurdle, or how to do this more easily, or on errors I've made would be greatly appreciated.
Thanks,
Ric Turley |
|
Back to top |
|
|
bhnb
Joined: 28 Nov 2005 Posts: 127
|
Posted: Sun Dec 10, 2006 5:24 pm Post subject: |
|
|
Hi Ric
Try doing: Code: | export CFLAGS=$CFLAGS:-I/usr/local/mysql/include
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/mysql/lib |
Then rebuilding
Jon |
|
Back to top |
|
|
zarac
Joined: 17 Sep 2006 Posts: 6 Location: Colorado Foothills
|
Posted: Mon Dec 11, 2006 9:38 am Post subject: New attempt still failed... |
|
|
Thanks Jon, but no change; I tried it several different times with fresh radlib forlders. I still have to change the line in radlib-2.6.2/database/mysql/my_database.c and the result is the same: Code: | /usr/bin/ld: warning -L: directory name (/opt/local/lib/mysql) does not exist
/usr/bin/ld: warning -L: directory name (/usr/lib/mysql) does not exist
/usr/bin/ld: can't locate file for: -lmysqlclient
collect2: ld returned 1 exit status
make[2]: *** [radmrouted] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2 |
I can still get rid of the warnings by setting appropriate links, but I can't find a file anywhere named 'lmysqlclient'. Where should it be and how should it get there? Or is 'lmysqlclient' a variable holding the filename?
Thanks!
Ric Turley |
|
Back to top |
|
|
bhnb
Joined: 28 Nov 2005 Posts: 127
|
Posted: Mon Dec 11, 2006 5:27 pm Post subject: |
|
|
Ric
LD_LIBRARY_PATH needs to point to the directory where libmysqlclient.a lives.
I've just re-read one of your earlier posts and it looks like mysql is presently installed in /opt/local. If that's the case, and libmysqlclient.a is at /opt/local/mysql/lib/libmysqlclient.a, try
Code: | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/local/mysql/lib |
Jon |
|
Back to top |
|
|
zarac
Joined: 17 Sep 2006 Posts: 6 Location: Colorado Foothills
|
Posted: Tue Dec 12, 2006 7:42 am Post subject: |
|
|
Rewind a bit; I set the variables before the make command and obviously they need to be set before the configure command. However, that produces an error: Code: | checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
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... configure: error: C compiler cannot create executables
See `config.log' for more details. |
and the log says: Code: | configure:2393: $? = 0
configure:2395: gcc -v </dev/null >&5
Using built-in specs.
Target: powerpc-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5026.obj~19/src/configure --disable-checking --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^+.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/gcc/darwin/4.0/c++ --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.0 (Apple Computer, Inc. build 5026)
configure:2398: $? = 0
configure:2400: gcc -V </dev/null >&5
gcc: argument to `-V' is missing
configure:2403: $? = 1
configure:2426: checking for C compiler default output file name
configure:2429: gcc :-I/usr/local/mysql/include conftest.c >&5
powerpc-apple-darwin8-gcc-4.0.0: :-I/usr/local/mysql/include: No such file or directory
configure:2432: $? = 1
configure: failed program was:
| /* confdefs.h. */ |
I've verified the path does exist and MySQL is at that path. /usr/local/mysql is a link, so I've tried /usr/local/mysql-standard-4.1.22-apple-darwin8.6.0-powerpc/include and I've tried with and without the -I. I've even run it as root and it does not seem to be able to find the path.
Sorry to continue to ask for help, but I don't understand all this compiler stuff - if I ever get through this install, I am going to stick to interpreted Ruby. I do appreciate the help!
Thanks again,
Ric Turley |
|
Back to top |
|
|
bhnb
Joined: 28 Nov 2005 Posts: 127
|
Posted: Tue Dec 12, 2006 4:31 pm Post subject: |
|
|
Hi Ric
Sorry, rubbish advice from me in previous posts. Miss out $CFLAGS in the export command (and forget about LD_LIBRARY_PATH completely). Your commands, which need to be executed before configure, should look something like this (honest):
Code: | export CFLAGS=-I/usr/local/mysql-standard-4.1.22-apple-darwin8.6.0-powerpc/include
export LDFLAGS=-L/usr/local/mysql-standard-4.1.22-apple-darwin8.6.0-powerpc/lib |
Jon |
|
Back to top |
|
|
zarac
Joined: 17 Sep 2006 Posts: 6 Location: Colorado Foothills
|
Posted: Thu Dec 14, 2006 9:14 am Post subject: Partial success!!! |
|
|
That did the trick - it appears to have installed correctly. I am able to see the weather station data on the web site. Thank you!
However, it is not recording the data in the MySQL database. I've tried bothe the local MySQL server and the remote server where I've been manually transferring logs. MySQL is not seeing the query. My current wview.conf looks like: Code: | # Enable SQL DB archive storage?
SQLDB_ENABLE=1
# Store extended weather data (VP Plus only)?
SQLDB_EXTENDED_INFO=0
# Store metric values in the database?
SQLDB_STORE_METRIC=0
# DB server hostname or IP address:
SQLDB_HOST=localhost
# DB server username:
SQLDB_USERNAME=wviewuser
# DB server password:
SQLDB_PASSWORD= wviewpassword
# Database name where archive records are stored:
SQLDB_DB_NAME= wview
# DB table name where archive records are stored:
SQLDB_TABLE_NAME=vantagepros |
The user is properly set up and tested with other apps. There are no error messages in the log. I am continuing to troubleshoot this, but any suggestions would be appreciated.
Thanks again for the great help getting it installed.
Ric Turley |
|
Back to top |
|
|
bhnb
Joined: 28 Nov 2005 Posts: 127
|
Posted: Thu Dec 14, 2006 4:22 pm Post subject: |
|
|
Hi Ric
Good to see that you're getting somewhere.
Is there nothing at all related to wviewsqld in the log? Presumably you've followed steps 11.1a.1,2 and 3 in the User Manual?
Jon |
|
Back to top |
|
|
|