logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Configure errors. Will not install -Linux Newbie

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support
View previous topic :: View next topic  
Author Message
bsworkman



Joined: 20 Sep 2006
Posts: 18

PostPosted: Wed Sep 20, 2006 0:59    Post subject: Configure errors. Will not install -Linux Newbie Reply with quote

I'm a newbie to Linux and I'm trying to install NWNX with no plugins.
I plan to use the ATS system - Do I need the plugins?

I have already installed NWServer app as well as MySQL server ver 5.0.22 and LibMyODBC the ODBC Driver. I am using Ubuntu 6.06 Linux verision.
The MySql and ODBC Driver were installed using the Ubuntu installer as recommended by the MySql site.

I extracted the linnwnx2 to a folder
typed in ./configure

This is what I got

checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable cc found in $PATH

If I try to run Make or Makefile or anything like that it can't find the file.
(this might be from a previous version that I read this)

The version of Linnwnx2 i am trying to install is the latest from this site as of 9-19-06.

There is no folder named mysql in the /usr/lib folder
I'm not sure how to find out where it installed, I know if I type mysql it does connect me to the server. Any thoughts??

The NWServer files and folders are in /usr/local/share/nwn


Please help.

Thanks,

-Brian.
Back to top
View user's profile Send private message
Acrodania



Joined: 02 Jan 2005
Posts: 208

PostPosted: Wed Sep 20, 2006 2:44    Post subject: Reply with quote

Do you have GCC installed? That's your C compiler....

The Make file can't find the compiler, consequently it cannot build the server executable. Its highly possible that if you didn't do a full install your Linux distro doesn't have the compilers installed.

That's about as much help as I can be :p
Back to top
View user's profile Send private message
bsworkman



Joined: 20 Sep 2006
Posts: 18

PostPosted: Wed Sep 20, 2006 3:03    Post subject: Reply with quote

I didn't know it needed to be.
I'll install it.

Thanks!
Back to top
View user's profile Send private message
bsworkman



Joined: 20 Sep 2006
Posts: 18

PostPosted: Wed Sep 20, 2006 4:00    Post subject: Reply with quote

well, I got farther this time. I installed GCC and its components.

now I get this

checking for GCC... GCC
checking for C compiler default output... configure: error: C compiler cannot create executables.

I think I'm missing a part of GCC.

I installed Version 4.0 of GCC.
Back to top
View user's profile Send private message
bsworkman



Joined: 20 Sep 2006
Posts: 18

PostPosted: Wed Sep 20, 2006 5:24    Post subject: Reply with quote

OK, I have now compiled after installing build-essential package.

Now I try to do run the make command and here is what I get.
I think this has something to do with not finding SQL which I'm not sure why.


Here is what is happening
-----

root@NWN-TestSvr:/usr/local/share/nwn/downloads/linnwnx2# make
g++ -mcpu=i386 -c -o nwnx2lib.o nwnx2lib.cpp
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
g++ -mcpu=i386 -c -o NWNXBase.o NWNXBase.cpp
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
g++ -mcpu=i386 -c -o gline.o gline.cpp
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
g++ -w -fPIC -shared -W -Wall -o nwnx2.so nwnx2lib.o NWNXBase.o gline.o -ldl -DHAVE_CONFIG_H
make -C db
make[1]: Entering directory `/usr/local/share/nwn/downloads/linnwnx2/db'
g++ -mcpu=i386 -I.. -c -o NWNXmysql.o NWNXmysql.cpp
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
In file included from NWNXmysql.h:17,
from NWNXmysql.cpp:20:
../db/dbmysql.h:27:25: error: mysql/mysql.h: No such file or directory
../db/dbmysql.h:40: error: ‘MYSQL’ does not name a type
../db/dbmysql.h:41: error: ISO C++ forbids declaration of ‘MYSQL_RES’ with no type
../db/dbmysql.h:41: error: expected ‘;’ before ‘*’ token
make[1]: *** [NWNXmysql.o] Error 1
make[1]: Leaving directory `/usr/local/share/nwn/downloads/linnwnx2/db'
make: *** [db] Error 2
root@NWN-TestSvr:/usr/local/share/nwn/downloads/linnwnx2#

-------

Any Ideas.
Back to top
View user's profile Send private message
Acrodania



Joined: 02 Jan 2005
Posts: 208

PostPosted: Wed Sep 20, 2006 7:19    Post subject: Reply with quote

When you installed MySQL did you install the Dev libraries also? I think it needs them to compile the connections.

Like I said, I "use" linux for web and database servers and such, but I've never done any developing on them. If a Tarball doesn't work, I'm lost Smile Hopefully one of our more knowledgeable members will chime in....
Back to top
View user's profile Send private message
bsworkman



Joined: 20 Sep 2006
Posts: 18

PostPosted: Wed Sep 20, 2006 7:49    Post subject: Reply with quote

Success!!!

The Server Dev pack was key. Thanks so much!
Back to top
View user's profile Send private message
Acrodania



Joined: 02 Jan 2005
Posts: 208

PostPosted: Wed Sep 20, 2006 15:35    Post subject: Reply with quote

Mr. Green
Back to top
View user's profile Send private message
Jesterb769



Joined: 25 Aug 2006
Posts: 22

PostPosted: Fri Sep 22, 2006 2:34    Post subject: Reply with quote

Thank you for asking the question bsworkman. I had the very same issue Smile
_________________
Jester the Occasionally Merciful
World of Raathi
Creative Director/Admin
Back to top
View user's profile Send private message
alaric



Joined: 24 Sep 2006
Posts: 1

PostPosted: Sun Sep 24, 2006 4:06    Post subject: Reply with quote

bsworkman wrote:
Success!!!

The Server Dev pack was key. Thanks so much!


Could somebody help me find these magical Server Dev Pack Libraries? I've spent the better part of the evening stumbling around the internets and I'm going to kill the rest of the bottle of whiskey in my kitchen if I don't get relief soon.

Thanks much in advance!
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Thu Sep 28, 2006 22:24    Post subject: Reply with quote

alaric wrote:
bsworkman wrote:
Success!!!

The Server Dev pack was key. Thanks so much!


Could somebody help me find these magical Server Dev Pack Libraries? I've spent the better part of the evening stumbling around the internets and I'm going to kill the rest of the bottle of whiskey in my kitchen if I don't get relief soon.

Thanks much in advance!

http://dev.mysql.com/get/Downloads/MySQL-4.1/MySQL-devel-standard-4.1.21-0.rhel3.i386.rpm/from/pick
or use a non-RPM MySQL package. It contains all necessary headers & libraries.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support All times are GMT + 2 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