LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problems installing MySQL (https://www.linuxquestions.org/questions/linux-newbie-8/problems-installing-mysql-486426/)

Demon_Spawn 09-24-2006 01:53 AM

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:

Code:

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?

Thanks
Demon_Spawn

b0uncer 09-24-2006 02:29 AM

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):

Code:

yum install mysql apache
If your current yum reposities don't include those packages, add such reposities (google and visit redhat.com/fedora 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.


All times are GMT -5. The time now is 04:39 PM.