产品服务AMH 免费服务器主机面板SSL证书 免费SSL证书申请 担保单 免费安全、零费率交易平台编程助手免费智能写代码、翻译AMYSQL 免费MySQL管理工具

AMH 社区首页

 AMH社区 - 开放自由有价值的社区

[求助帖] 在Linode Ubuntu 14.04 64位系统中安装AMH碰到的问题及解决办法

quietjosen
铜牌会员
833.00 价值分

quietjosen 发表于 2014-07-04 20:23:16
本帖最后由 quietjosen 于 2014-7-20 12:12 编辑

刚买了个Linode的VPS,尝试安装AMH,碰到以下两个问题导致安装失败:
1,
gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -I../lib -I../intl -DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1 -g -O2 -c progname.c
In file included from progname.c:26:0:
./stdio.h:1010:1: error: ‘gets’ undeclared here (not in a function)
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
^
make[2]: *** [progname.o] Error 1
make[2]: Leaving directory `/home/amh_install/packages/untar/libiconv-1.14/srclib'

这个问题论坛已经有解决办法;http://amysql.com/bbs/forum.php?mod=viewthread&tid=2610

2,
checking for png_write_image in -lpng... yes
If configure fails try --with-xpm-dir=<DIR>
configure: error: freetype.h not found.
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
cp: cannot create regular file ‘/usr/local/php/etc/php-fpm.conf’: No such file or directory
cp: cannot create regular file ‘/usr/local/php/etc/php-fpm-template.conf’: No such file or diorytt
mkdir: cannot create directory ‘/usr/local/php/etc/fpm’: No such file or directory
mkdir: cannot create directory ‘/usr/local/php/var/run/pid’: No such file or directory
touch: cannot touch ‘/usr/local/php/etc/fpm/amh.conf’: No such file or directory
./amh.sh: line 371: /usr/local/php/sbin/php-fpm: No such file or directory
[OK] php-5.3.27 install completed.

查看vi php-5.3.27/configure

for i in $PHP_FREETYPE_DIR /usr/local /usr; do
if test -f "$i/include/freetype2/freetype/freetype.h"; then
FREETYPE2_DIR=$i
FREETYPE2_INC_DIR=$i/include/freetype2
break
fi
done

可以看到脚本假定freetype的相对路径为“/include/freetype2/freetype/freetype.h”,但实际上系统路径为“/include/freetype2/freetype.h”。可以相应的修改脚本,去除一层"freetype",或者在系统路径下临时多生成一层路径,并将相应的文件复制过去。

来自我的博客:http://atjason.com/545.html






2014-07-04 20:23:16 1

amysql
创始人
99530.81 价值分

是的php5.2在有些系统安装会没找到freetype.h
可以复制下文件freetype.h再安装:
mkdir -p /usr/include/freetype2/freetype;
cp -a /usr/include/freetype2/freetype.h /usr/include/freetype2/freetype;

AMH5.0新版本也有处理这个问题了
  支持 (0分)  反对 (0分)
回复  2014-07-07 10:00:56 2

AMH面板 - 好用高效低占用、安全可靠极稳定

quietjosen
铜牌会员
833.00 价值分

引用:
amysql 发表于 2014-7-7 10:00
是的php5.2在有些系统安装会没找到freetype.h
可以复制下文件freetype.h再安装:
mkdir -p /usr/include/fr ...


好吧,又用5.0来勾引我了:D

亲,给个发布计划?
  支持 (0分)  反对 (0分)
回复  2014-07-07 14:58:32 3

Yusky
金牌会员
11307.70 价值分

引用:
amysql 发表于 2014-7-7 10:00
是的php5.2在有些系统安装会没找到freetype.h
可以复制下文件freetype.h再安装:
mkdir -p /usr/include/fr ...


期待新版出现啊
  支持 (4.63分)  反对 (0分)
回复  2014-07-07 17:06:02 4
 1  (总1页)
AMH社区列表
用户服务中心