Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-24-2006, 02:53 AM   #1
LQ Newbie
Registered: Sep 2006
Posts: 3

Rep: Reputation: 0
Post Problems installing MySQL

I'm running Fedora Core, and I'm trying to get a web server up & running. I've got Apache installed. but when I try to do "make install" in mysql I get this:

libmysql.c: In function `mysql_real_connect':
libmysql.c:1862: warning: passing arg 5 of `gethostbyname_r' from incompatible pointer type
libmysql.c:1862: error: too few arguments to function `gethostbyname_r'
libmysql.c:1862: warning: assignment makes pointer from integer without a cast
make[2]: *** [libmysql.lo] Error 1
make[2]: Leaving directory `/root/mysql-4.0.27/libmysql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/mysql-4.0.27'
make: *** [all] Error 2
Can anyone shed some light on this & help me?

Old 09-24-2006, 03:29 AM   #2
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
If you feel troubled compiling programs from source, it's common. There are numerous things that can go wrong, and most often I have found myself figuring out what configure options I need to give before the make step, so it succeeds and lets me do make install afterwards. Since you're using Fedora Core that has binary packets I strongly suggest you install the binary rpm version of MySQL (and Apache):

yum install mysql apache
If your current yum reposities don't include those packages, add such reposities (google and visit for more information). But trust me, you will want to learn a lot from compiling programs, about compilers, versions etc. before you'll start compiling "big things" like web server components. In my opinion you should start off by compiling some smaller apps and get familiar with the process and how you can affect it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MythTV - problems installing qt-mysql paulmai Linux - Software 0 03-06-2006 05:52 AM
Problems installing MySQL soxfan Debian 1 02-23-2006 12:45 PM
Problems with MySQL when installing phpBB dranobob Linux - Newbie 2 09-06-2005 10:11 AM
problems installing mysql J0sep Red Hat 1 05-05-2004 10:21 PM
problems installing mysql infamous41md Linux - Software 3 07-07-2003 08:58 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:41 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration