我尝试在我的FreeBSD服务器上安装Php5,遵循教程。
所以首先我做了
cd /usr/ports/lang/php5
然后
make config
在那里没有任何改变,最后我做了
make install
但它给了我一些错误。
root@ns******:/usr/ports/lang/php5 # make install ===> php5-5.4.39 depends on file: /usr/local/bin/autoconf-2.69 - not found ===> Verifying install for /usr/local/bin/autoconf-2.69 in /usr/ports/devel/autoconf ===> autoconf-2.69 depends on executable: gm4 - found ===> autoconf-2.69 depends on executable: help2man - not found ===> Verifying install for help2man in /usr/ports/misc/help2man ===> help2man-1.43.3_1 depends on package: p5-Locale-gettext>=0 - not found ===> Verifying install for p5-Locale-gettext>=0 in /usr/ports/devel/p5-Locale-gettext ===> Installing for p5-Locale-gettext-1.05_4 ===> p5-Locale-gettext-1.05_4 depends on file: /usr/local/bin/perl5.16.3 - found ===> p5-Locale-gettext-1.05_4 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so) ===> Checking if p5-Locale-gettext already installed ===> Registering installation for p5-Locale-gettext-1.05_4 as automatic pkg-static: lstat(/usr/ports/devel/p5-Locale-gettext/work/stage/usr/local/lib/perl5/site_perl/mach/5.16/auto/Locale/gettext/gettext.so): No such file or directory pkg-static: lstat(/usr/ports/devel/p5-Locale-gettext/work/stage/usr/local/lib/perl5/site_perl/mach/5.16/Locale/gettext.pm): No such file or directory pkg-static: lstat(/usr/ports/devel/p5-Locale-gettext/work/stage/usr/local/lib/perl5/site_perl/man/man3/Locale::gettext.3.gz): No such file or directory *** [fake-pkg] Error code 74 Stop in /usr/ports/devel/p5-Locale-gettext. *** [build-depends] Error code 1 Stop in /usr/ports/misc/help2man. *** [install] Error code 1 Stop in /usr/ports/misc/help2man. *** [build-depends] Error code 1 Stop in /usr/ports/devel/autoconf. *** [build-depends] Error code 1 Stop in /usr/ports/lang/php5. *** [install] Error code 1 Stop in /usr/ports/lang/php5.
所以,我从gnu网站上下载了autoconf-2.69,然后找不到libtool22。 下载它,以及“固定”它。 但接着又是一个错误。
我不在我的电脑上,所以我不能在这里发布错误,但恢复,它给了我权限拒绝使用autoconf和chmod不工作(我的朋友告诉我至less使用的命令)!
如果有帮助,我通过bitvise ssh上传了这些东西。 这是一个专用的服务器,我有root权限,在kimsufi上有。
我怎样才能解决这个问题? 谢谢。
gettext端口已经被分成两个不同的端口,所以你有过时的软件,应该在安装之前更新。
首先,更新您的ports树:
portsnap fetch update
可能还要等一下。
那么你必须安装一些小工具portmaster :
make -C /usr/ports/ports-mgmt/portmaster install clean
那么你必须检查你的端口是否处于一致状态:
portmaster --check-depends portmaster --check-port-dbdir portmaster -y --clean-distfiles
那么你必须卸载旧的gettext :
pkg delete -f gettext
现在你可能想在lang/php5之前安装www/mod_php5 – 现在apache模块是单独的端口,而CLI / FPM仍旧在旧的位置。
make -C /usr/ports/www/mod_php5 install clean make -C /usr/ports/lang/php5 install clean make -C /usr/ports/lang/php5-extensions install clean
新鲜的gettext将自动安装为依赖,以及许多其他新鲜的端口。
虽然您的主机有点过时,但由于安全原因,您需要更新所有端口:
portmaster -atd
您可能会遇到另一个依赖性错误,因此只需卸载相应的端口(如gettext ),然后一次又一次启动portmaster -aRtd ,直到解决所有问题。 如果仍然存在一些奇怪的消息,则可以通过portmaster -aftd一次性重新安装所有端口
PS您只能从ports / packages安装软件,以避免不必要的后果。
请问pkg install p5-Locale-gettext对你有帮助吗? (如果提供拆卸和/或重新安装其他包装,请小心)