MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
can someone tell me how to install php 5.0.4 on mandrake 10.1. i'm currently running 4.3.8. i already tried the php manual, but there isn't much info about it
check in /usr/local/mysql/date for a file that ends in *.err. Do "cat *.err" and post the output. You may have to disable your previous mysql installation (through the services option in the system menu or via MCC) or uninstall it.
Ok, the best thing to do is to uninstall the mysql package you installed in /usr/local and do a reinstallation. You can download a binary package from the mysql website (maybe thats the one you already downloaded), extract it to /usr/local and then rename it to just mysql. Once thats done, do
1) cd /usr/local/mysql/scripts
2) ./mysql_install_db
3) chown -R root.mysql /usr/local/mysql/*
4) chown -R mysql.mysql /usr/local/mysql/data/*
5) Test it by doing /usr/local/mysql/bin/mysqld_safe –user=mysql &
To remove the Mandrake mysql package, just use rpmdrake from the Mandrake control centre.
won't work, when i do the ./mysql_install_db, i get this:
Code:
[root@localhost scripts]# ./mysql_install_db
./mysql_install_db: line 1: my_print_defaults: command not found
Didn't find ./bin/mysqld
You should do a 'make install' before executing this script
[root@localhost scripts]#
what am i doing wrong
the file mysqld exist in bin
guess what, now php won't install, i run this command:
#./configure ?prefix=/usr/local/php ?with-apxs2=/usr/local/apache2/bin/apxs ?with-mysql=/usr/local/mysql
from this site: http://www.hostlibrary.com/installin...l_php_on_linux
and i get this error in my terminal
Code:
[root@localhost php-5.0.4]# ./configure -prefix=/usr/local/php -with-apxs2=/usr/local/apache2/bin/apxs-with-mysql=/usr/local/mysql
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... exit 0;
checking whether ln -s works... yes
checking for mawk... mawk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP parsers.
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 2422: lex: command not found
configure: error: cannot find output from lex; giving up
[root@localhost php-5.0.4]#
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.