LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 849|回复: 9

ports安装xpdf发生错误,请老兄帮我看看

[复制链接]
发表于 2003-8-19 01:28:24 | 显示全部楼层 |阅读模式
bash# make install clean
===>  Installing for zh-xpdf-2.00
===>   zh-xpdf-2.00 depends on executable: xpdf - not found
===>    Verifying install for xpdf in /usr/ports/graphics/xpdf
===>  Extracting for xpdf-2.02.1
>> Checksum OK for xpdf-2.02pl1.tar.gz.
===>  Patching for xpdf-2.02.1
===>   xpdf-2.02.1 depends on executable: freetype-config - found
===>   xpdf-2.02.1 depends on executable: gmake - found
===>   xpdf-2.02.1 depends on shared library: t1.5 - found
===>   xpdf-2.02.1 depends on shared library: freetype.9 - found
===>   xpdf-2.02.1 depends on shared library: Xm.3 - found
===>   xpdf-2.02.1 depends on shared library: X11.6 - found
===>  Configuring for xpdf-2.02.1
env: -O3: No such file or directory
===>  Script "configure" failed unexpectedly.
      Please report the problem to DougB@FreeBSD.org [maintainer] and attach
      the "/usr/ports/graphics/xpdf/work/xpdf-2.02pl1/config.log" including
      the output of the failure of your make command. Also, it might be a
      good idea to provide an overview of all packages installed on your
      system (e.g. an `ls /var/db/pkg`).
*** Error code 1

Stop in /usr/ports/graphics/xpdf.
*** Error code 1

Stop in /usr/ports/chinese/xpdf.
*** Error code 1

Stop in /usr/ports/chinese/xpdf.
看不懂,不知道是怎么回事,多谢,
发表于 2003-8-19 06:12:29 | 显示全部楼层
你是不是想用 -O3 优化呀? 看看你的/etc/make.conf 中 CFLAGS 是什么?
 楼主| 发表于 2003-8-19 13:14:53 | 显示全部楼层
好象是用-03优化的,这个是make.conf的CPU优化是从gentoo下面cp过来的,make.conf如下
# -- use.perl generated deltas -- #
# Created: Thu Aug  7 11:05:13 2003
# Setting to use base perl from ports:
PERL_VER=5.6.1
PERL_VERSION=5.6.1
PERL_ARCH=mach
NOPERL=yo
NO_PERL=yo
NO_PERL_WRAPPER=yo

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer"
发表于 2003-8-19 13:25:00 | 显示全部楼层
问题出在你的CHOST上,这个是bsd,不是linux。CHOST是gcc的config,你的bsd上的gcc 有可能有这个config吗?

你可以用gcc-config --list-profiles 看看你机器上gcc有哪些profile。

我以前试过用 -O3 -fomit-frame-pointer 编译bsd的内核,编译是能通过,一启动就panic了。
 楼主| 发表于 2003-8-19 13:39:42 | 显示全部楼层
我的机器上没有gcc-config --list-profiles
bash# gcc-config --list-profiles
bash: gcc-config: command not found

我把CPU优化的去除了,仍然有错误,
/usr/local/include/freetype2/freetype/internal/cfftypes.h:24:22: ft2build.h: No such file or directory
/usr/local/include/freetype2/freetype/internal/cfftypes.h:25:10: #include expects "FILENAME" or <FILENAME>
In file included from FTFont.cc:23:
/usr/local/include/freetype2/freetype/internal/cfftypes.h:53: syntax error
   before `typedef'
/usr/local/include/freetype2/freetype/internal/cfftypes.h:57: 'FT_Byte' is used
   as a type, but is not defined as a type.
/usr/local/include/freetype2/freetype/internal/cfftypes.h:58: 'FT_ULong' is
   used as a type, but is not defined as a type.
/usr/local/include/freetype2/freetype/internal/cfftypes.h:60: syntax error
   before `*' token
/usr/local/include/freetype2/freetype/internal/cfftypes.h:20:1: unterminated #ifndef
FTFont.cc:22:1: unterminated #if
FTFont.cc:11:1: unterminated #if
gmake[1]: *** [FTFont.o] 错误 1
gmake[1]: Leaving directory `/usr/ports/graphics/xpdf/work/xpdf-2.02pl1/xpdf'
gmake: *** [all] 错误 2
*** Error code 2

Stop in /usr/ports/graphics/xpdf.
*** Error code 1

Stop in /usr/ports/chinese/xpdf.
*** Error code 1

Stop in /usr/ports/chinese/xpdf.
这是其中的一部分,
发表于 2003-8-19 14:34:04 | 显示全部楼层
重新装过你的freetype2,好像头文件损坏了

把这3行都去掉
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer"
 楼主| 发表于 2003-8-19 21:44:29 | 显示全部楼层
我重新安装过freetype2了,仍然出来这样的问题,不知道是不是我文件的问题,ports上面好象没有freetype2,能不能下载一个下来装,下下来后怎么装,
发表于 2003-8-19 22:12:43 | 显示全部楼层
bash-2.05b$ whereis freetype2
freetype2: /usr/ports/print/freetype2
怎么能没有呢?升级一下ports吧
 楼主| 发表于 2003-8-19 22:15:48 | 显示全部楼层
呵呵,,多谢 老兄,
我查找这个了,只是这个在print后面我以为是关于打印的就没装,多谢
 楼主| 发表于 2003-8-19 23:13:43 | 显示全部楼层
我原安装盘装过freetype2,用ports安装也装过了,
可是还是不行,不明白,
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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