当前位置: 技术问答>linux和unix
关于linux安装LAMP的前置问题!
来源: 互联网 发布时间:2016-10-02
本文导语: 本人新手开始学习LAMP在其中遇到了几个问题 系统是centos 1.安装Apache时: Libraries have been installed in: /usr/local/lamp/mysql/lib/mysql/plugin If you ever happen to want to link against installed libraries in a given directory, LIBDI...
本人新手开始学习LAMP在其中遇到了几个问题
系统是centos
1.安装Apache时:
Libraries have been installed in:
/usr/local/lamp/mysql/lib/mysql/plugin
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
这个问题半懂不懂得,,说是什么路径问题,添加路径不会。而且不知道有什么用!
还有一个是安装前置的问题,在网上搜了大量的信息
例:
1.yum update 检查系统更新
2.yum install gcc gcc-c++ 软件编译环境
3.yum erase httpd 卸载系统自带的httpd (apache2.2.3)
4.yum install zlib-devel libtool ncurses-devel libxml2-devel
(zlib-devel 安装apache需要,否则出错 .libtool安装mysql时候需要.同时附带了autoconf automake imake 编译mysql 5.1.48时候会出错 需要autoconf重新配置一下)
yum安装这些工具后还是在make时出错,,所以我想问下LAMP前置安装都需要哪些工具,而且路径怎么配置?
谢谢大家回复!
系统是centos
1.安装Apache时:
Libraries have been installed in:
/usr/local/lamp/mysql/lib/mysql/plugin
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
这个问题半懂不懂得,,说是什么路径问题,添加路径不会。而且不知道有什么用!
还有一个是安装前置的问题,在网上搜了大量的信息
例:
1.yum update 检查系统更新
2.yum install gcc gcc-c++ 软件编译环境
3.yum erase httpd 卸载系统自带的httpd (apache2.2.3)
4.yum install zlib-devel libtool ncurses-devel libxml2-devel
(zlib-devel 安装apache需要,否则出错 .libtool安装mysql时候需要.同时附带了autoconf automake imake 编译mysql 5.1.48时候会出错 需要autoconf重新配置一下)
yum安装这些工具后还是在make时出错,,所以我想问下LAMP前置安装都需要哪些工具,而且路径怎么配置?
谢谢大家回复!
|
你要源码安装?
缺少的包 用yum安装之后 自动就能找到。make出什么错误 你贴出来吧。
前段时间我源码简单装了一遍LAMP 参考一下http://blog.csdn.net/steptodream/archive/2010/09/09/5874314.aspx
缺少的包 用yum安装之后 自动就能找到。make出什么错误 你贴出来吧。
前段时间我源码简单装了一遍LAMP 参考一下http://blog.csdn.net/steptodream/archive/2010/09/09/5874314.aspx