Ik probeer MySql 4.0 te installeren op een verse linux bak.
Ik had in het begin al problemen met het uitvoeren van./configure maar na het installeren van gcc is dit opgelost. Als ik nu het make commando wil uitvoeren krijg ik de volgende error:
Ik heb ook al in de manual van MySql gekeken en daar staat het volgende:
* Make sure that the GNU C++ g++ is installed. On some Linux distributions, the required package is called gpp, on others it is named gcc-c++.
* Use gcc as your C++ compiler by setting the CXX environment variable to gcc:
export CXX="gcc"
Dit heb ik ook al gedaan. Wie kan mij helpen.
Mijn gcc versie is gcc versie 3.2.2
Mijn configure script:
./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --disable-maintainer-mode --with-mysqld-user=mysql --enable-large-files
--without-comment --without-debug --without-bench
Ik had in het begin al problemen met het uitvoeren van./configure maar na het installeren van gcc is dit opgelost. Als ik nu het make commando wil uitvoeren krijg ik de volgende error:
code:
1
2
3
4
5
6
7
8
9
| libmysql.c: In function `mysql_real_connect': libmysql.c:1790: warning: passing arg 5 of `gethostbyname_r' from incompatible pointer type libmysql.c:1790: too few arguments to function `gethostbyname_r' libmysql.c:1790: warning: assignment makes pointer from integer without a cast make[2]: *** [libmysql.lo] Fout 1 make[2]: Weggaan uit map `/usr/local/mysql-4.0.15a/libmysql' make[1]: *** [all-recursive] Fout 1 make[1]: Weggaan uit map `/usr/local/mysql-4.0.15a' make: *** [all] Fout 2 |
Ik heb ook al in de manual van MySql gekeken en daar staat het volgende:
* Make sure that the GNU C++ g++ is installed. On some Linux distributions, the required package is called gpp, on others it is named gcc-c++.
* Use gcc as your C++ compiler by setting the CXX environment variable to gcc:
export CXX="gcc"
Dit heb ik ook al gedaan. Wie kan mij helpen.
Mijn gcc versie is gcc versie 3.2.2
Mijn configure script:
./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --disable-maintainer-mode --with-mysqld-user=mysql --enable-large-files
--without-comment --without-debug --without-bench