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 
 
MySQL location

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development
View previous topic :: View next topic  
Author Message
sintaqx



Joined: 30 Jan 2005
Posts: 5

PostPosted: Mon Jan 31, 2005 4:58    Post subject: MySQL location Reply with quote

When setting up nwnx on my linux system it ran into problems with the non-standard location of my mysql setup. A small alteration that would fix this would be to add a configure option to enter in the path to the mysql directory. something along the lines of --with-mysql=<dir>.
Back to top
View user's profile Send private message
DarkstarsDad



Joined: 17 Jan 2005
Posts: 59
Location: Overland Park, Kansas USA

PostPosted: Tue Feb 01, 2005 4:44    Post subject: you can change it b4 compile. Reply with quote

You can edit the address before you ./configure it.

In the linnwnx2/db folder select the Makefile.in and open in your favorite editor.

Scroll down to the libs=@libs@ -L /dir/to/your/mysql -lmysqlclient -lz

save and exit Deleat the backup makefile (if your editor makes one).

Then ./configure like normal and it should find the custom location you put the mysql in.

Hope this helps someone.
Back to top
View user's profile Send private message
sintaqx



Joined: 30 Jan 2005
Posts: 5

PostPosted: Wed Feb 02, 2005 5:12    Post subject: Reply with quote

That is essentially what I did, as well as making a couple simlinks. The configure flags would make it easier though. the fewer files the user is required to manipulate, the happier the user is Smile
Back to top
View user's profile Send private message
DarkstarsDad



Joined: 17 Jan 2005
Posts: 59
Location: Overland Park, Kansas USA

PostPosted: Wed Feb 02, 2005 6:07    Post subject: Fewer=Better Reply with quote

That is true but linux users are Really bad at not wanting things in a standard order. So until all the linux people decide to conform to the same setup structure there will always be a need to adjust files. It's what makes linux so fun.
_________________
Just because you think you can't. Is the best reason to try it anyway.
Back to top
View user's profile Send private message
Dae'Loki
Guest





PostPosted: Thu Apr 14, 2005 0:44    Post subject: NWserver Reply with quote

I tried to do the ./configure, but it says the following.



nwn@nwn.elisair.com [~]# ./configure
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
nwn@nwn.elisair.com [~]#
Back to top
dguntner



Joined: 31 Dec 2004
Posts: 116

PostPosted: Thu Apr 14, 2005 4:33    Post subject: Reply with quote

When you type:

gcc --version

at your shell prompt, what comes back? Also, which version of which Linux distribution are you using?

--Dave
Back to top
View user's profile Send private message
DarkstarsDad



Joined: 17 Jan 2005
Posts: 59
Location: Overland Park, Kansas USA

PostPosted: Mon Apr 18, 2005 14:02    Post subject: gcc Reply with quote

do you have gcc installed? what version and flavor of linux are you using?
try here
http://gcc.gnu.org/
this might help
_________________
Just because you think you can't. Is the best reason to try it anyway.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development 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