编译ImageMagick过不去

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
木泥黑
帖子: 1339
注册时间: 2008-10-18 12:41

编译ImageMagick过不去

#1

帖子 木泥黑 » 2010-01-07 12:22

因为要用最新版本,所以只能编译安装

root@server2:~/ImageMagick-6.5.8-10# ./configure --bindir=/usr/bin/
configuring ImageMagick 6.5.8-10
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking whether build environment is sane... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/root/ImageMagick-6.5.8-10':
configure: error: C compiler cannot create executables
See `config.log' for more details.

有两个地方过不去
头像
木泥黑
帖子: 1339
注册时间: 2008-10-18 12:41

Re: 编译ImageMagick过不去

#2

帖子 木泥黑 » 2010-01-07 12:34

先build-dep试一下
头像
cnkilior
论坛版主
帖子: 4984
注册时间: 2007-08-05 17:40

Re: 编译ImageMagick过不去

#3

帖子 cnkilior » 2010-01-07 12:44

没有安装gcc等
头像
tenzu
论坛版主
帖子: 36924
注册时间: 2008-11-21 20:26

Re: 编译ImageMagick过不去

#4

帖子 tenzu » 2010-01-07 12:45

build-essential?
我不懂
头像
木泥黑
帖子: 1339
注册时间: 2008-10-18 12:41

Re: 编译ImageMagick过不去

#5

帖子 木泥黑 » 2010-01-07 14:12

网上搜索不到相关文档,最后还是靠自己搞定了

以下是编译全过程

服务器版本ubuntu 8.04 server AMD64

ImageMagick-6.5.8-10

代码: 全选

apt-get build-dep imagemagick
安装编译环境解决check不过的问题

代码: 全选

apt-get install libperl-dev
这一步没做的话make install 会出现/usr/bin/ld: cannot find -lperl的错误

代码: 全选


./configure  --bindir=/usr/bin/

make

make install
安装完成后多了这些bin命令

代码: 全选

-rwxr-xr-x 1 root   root      26534 2010-01-07 14:02 animate
-rwxr-xr-x 1 root   root      26860 2010-01-07 14:02 compare
-rwxr-xr-x 1 root   root      26538 2010-01-07 14:02 composite
-rwxr-xr-x 1 root   root      26534 2010-01-07 14:02 conjure
-rwxr-xr-x 1 root   root      26534 2010-01-07 14:02 convert
-rwxr-xr-x 1 root   root      26534 2010-01-07 14:02 display
-rwxr-xr-x 1 root   root      26862 2010-01-07 14:02 identify
-rwxr-xr-x 1 root   root      26532 2010-01-07 14:02 import
-rwxr-xr-x 1 root   root       1412 2010-01-07 14:02 Magick-config
-rwxr-xr-x 1 root   root       1468 2010-01-07 14:02 Magick++-config
-rwxr-xr-x 1 root   root       1606 2010-01-07 14:02 MagickCore-config
-rwxr-xr-x 1 root   root       1438 2010-01-07 14:02 MagickWand-config
-rwxr-xr-x 1 root   root      26534 2010-01-07 14:02 mogrify
-rwxr-xr-x 1 root   root      26534 2010-01-07 14:02 montage
-rwxr-xr-x 1 root   root      26532 2010-01-07 14:02 stream
-rwxr-xr-x 1 root   root       1420 2010-01-07 14:02 Wand-config
回复