LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: 北南南北

用源码包安装php-4.34+mysql-4.0.16+apache-2.0.48+vbb-2.32实践总结

[复制链接]
发表于 2005-9-20 16:54:46 | 显示全部楼层
请问如果我在内网内如何让 3322 这客户端也可以正确获取外网的IP?

不然我每次都要手工修改,太累人了。。。
回复 支持 反对

使用道具 举报

发表于 2005-9-20 16:56:18 | 显示全部楼层
我是猫内置拨号,已经做了端口映射了。
回复 支持 反对

使用道具 举报

发表于 2005-11-5 01:23:47 | 显示全部楼层
编译MYSQL的时候出现错误,不知道为什么??请教!

[root@seebook mysql-max-4.1.14-i686]# ./configure --prefix=/opt/mysql --with-mysqld-user=beinan --with-extra-charsets=all --with-unix-socket-path=/opt/mysql/var/mysql.sock
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!

To help you a bit, I am now going to create the needed MySQL databases
and start the MySQL server for you.  If you run into any trouble, please
consult the MySQL manual, that you can find in the Docs directory.

Installing all prepared tables
Fill help tables

To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h seebook password 'new-password'
See the manual for more instructions.

NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run
the ./bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!

You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the ./bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com
Starting the mysqld server.  You can test that it is up and running
with the command:
./bin/mysqladmin version
[root@seebook mysql-max-4.1.14-i686]# chown: ‘mysql’: 无效的用户
Starting mysqld daemon with databases from /profile/mysql-max-4.1.14-i686/data
STOPPING server from pid file /profile/mysql-max-4.1.14-i686/data/seebook.pid
051105 02:09:56  mysqld ended
回复 支持 反对

使用道具 举报

发表于 2005-11-6 01:27:48 | 显示全部楼层
添加mysql用户后还是不行,运行安装程序提示如下:

root@seebook mysql-max-5.0.15-linux-i686]# ./configure --prefix=/opt/mysql --with-mysqld-user=ysm --with-extra-charsets=all --with-unix-socket-path=/opt/mysql/var/mysql.sock
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!

To help you a bit, I am now going to create the needed MySQL databases
and start the MySQL server for you.  If you run into any trouble, please
consult the MySQL manual, that you can find in the Docs directory.

Installing all prepared tables
Fill help tables

To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h seebook password 'new-password'
See the manual for more instructions.

NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run
the ./bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!

You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the ./bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com
Starting the mysqld server.  You can test that it is up and running
with the command:
./bin/mysqladmin version
[root@seebook mysql-max-5.0.15-linux-i686]# Starting mysqld daemon with databases from /profile/mysql-max-5.0.15-linux-i686/data
STOPPING server from pid file /profile/mysql-max-5.0.15-linux-i686/data/seebook.pid
051106 01:22:54  mysqld ended
回复 支持 反对

使用道具 举报

发表于 2005-11-6 19:37:13 | 显示全部楼层
长知识,谢谢楼主了!
回复 支持 反对

使用道具 举报

发表于 2005-11-22 19:51:48 | 显示全部楼层
正在学vbb3.5,

谢谢!!
回复 支持 反对

使用道具 举报

发表于 2005-11-23 06:10:48 | 显示全部楼层
谢谢,这样的帖子!

师傅领进门,修行在个人!

再次感谢“北南南北”兄!
回复 支持 反对

使用道具 举报

发表于 2005-12-13 13:11:46 | 显示全部楼层
按照北南老大的帖子一步步做,把PHP编译好以后,重新启动apache的时候提示配置文件出错。
配置文件出现语法错误,错误在
  1. LoadModule php5_module        modules/libphp5.so
复制代码
这句上。
提示
Cannot load ..../httpd/modules/libphp5.so into server: ..../httpd/modules/libphp5.so: undefined symbol: _zend_list_delete
回复 支持 反对

使用道具 举报

发表于 2006-1-10 14:32:50 | 显示全部楼层

北南兄,为什么我安装不到opt下呢?

我在安装前也进行了配置:"--prefix=/opt/mysql .....".为什么装完之后总是装在/usr/local下呢?
回复 支持 反对

使用道具 举报

发表于 2006-1-11 23:06:21 | 显示全部楼层
我在对php进行完
./configure --prefix=/opt/php --with-mysql=/opt/mysql --with-apxs2=/opt/apache/bin/apxs --enable-track-vars --enable-force-cgi-redirect --with-config-file-path=/opt/php/etc     之后  执行make时提示如下:

[root@My-pc php-4.0.6]# make
Making all in Zend
make[1]: Entering directory `/opt/soft/php-4.0.6/Zend'
/bin/sh ../libtool --silent --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../main   -D_REENTRANT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -I../TSRM  -g -O2 -pthread -c zend_language_scanner_cc.cc
In file included from /usr/include/c++/3.2.2/backward/iostream.h:31,
                 from FlexLexer.h:47,
                 from zend_language_scanner_cc.cc:240:
/usr/include/c++/3.2.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
In file included from FlexLexer.h:47,
                 from zend_language_scanner_cc.cc:240:
/usr/include/c++/3.2.2/backward/iostream.h:36: using declaration `istream'
   introduced ambiguous type `istream'
In file included from zend_language_scanner_cc.cc:2712:
zend_istdiostream.h:8: 'stdiobuf' is used as a type, but is not defined as a
   type.
zend_istdiostream.h:11: syntax error before `*' token
zend_istdiostream.h: In constructor `istdiostream::istdiostream(FILE*)':
zend_istdiostream.h:10: class `istdiostream' does not have any field named `
   _file'
zend_istdiostream.h:10: no matching function for call to `
   std::basic_istream<char, std::char_traits<char> >::basic_istream()'
/usr/include/c++/3.2.2/iosfwd:58: candidates are: std::basic_istream<char,
   std::char_traits<char> >::basic_istream(const std::basic_istream<char,
   std::char_traits<char> >&)
/usr/include/c++/3.2.2/istream:77:                 std::basic_istream<_CharT,
   _Traits>::basic_istream(std::basic_streambuf<_CharT, _Traits>*) [with _CharT
   = char, _Traits = std::char_traits<char>]
zend_istdiostream.h:10: `_file' undeclared (first use this function)
zend_istdiostream.h:10: (Each undeclared identifier is reported only once for
   each function it appears in.)
zend_istdiostream.h: At global scope:
zend_istdiostream.h:12: parse error before `}' token
zend_language_scanner_cc.cc: In function `void
   zend_file_handle_dtor(zend_file_handle*)':
zend_language_scanner_cc.cc:2823: no matching function for call to `
   std::basic_streambuf<char, std::char_traits<char> >::stdiofile()'
zend_language_scanner_cc.cc: In function `int
   open_file_for_scanning(zend_file_handle*, zend_compiler_globals*)':
zend_language_scanner_cc.cc:2894: invalid conversion from `int' to `const char*
   '
zend_language_scanner_cc.cc:2894:   initializing argument 1 of `
   std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*,
   std::_Ios_Openmode) [with _CharT = char, _Traits = std::char_traits<char>]'
zend_language_scanner_cc.cc: In member function `int
   ZendFlexLexer::lex_scan(zval*, zend_compiler_globals*)':
zend_language_scanner_cc.cc:4705: cannot convert `std::istream*' to `istream*'
   in assignment
zend_language_scanner_cc.cc: In member function `void
   zendFlexLexer::yy_load_buffer_state()':
zend_language_scanner_cc.cc:5241: cannot convert `istream*' to `std::istream*'
   in assignment
zend_language_scanner_cc.cc: In member function `void
   zendFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream*)':
zend_language_scanner_cc.cc:5292: cannot convert `std::istream*' to `istream*'
   in assignment
make[1]: *** [zend_language_scanner_cc.lo] Error 1
make[1]: Leaving directory `/opt/soft/php-4.0.6/Zend'
make: *** [all-recursive] Error 1

请教问题出在哪里?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表