Linux安装ImageMagick和jmagick的问题

care365 2010-09-18 02:45:38
安装ImageMagick包,运行以下命令:
tar xzvf ImageMagick-6.5.3-2.tar.gz
[root@localhost last]# cd ImageMagick-6.4.0
[root@localhost ImageMagick-6.4.0]# ./configure
configuring ImageMagick 6.4.0
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-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)... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no

configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

这是GCC没有装的原因吗?我是菜鸟对Linux一点都不懂,请大家会的帮下忙。谢谢
...全文
179 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
care365 2010-09-18
  • 打赏
  • 举报
回复
呵呵,结贴。。非常感谢steptodream
care365 2010-09-18
  • 打赏
  • 举报
回复
非常感谢,现在已经把gcc装好了。我在试试装jmagick
steptodream 2010-09-18
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 shizhuxiong 的回复:]

有点明白了,直接把ISO文件加载进去,然后进光盘打开终端输入find命令也可以吧
[/Quote]
对呀!但是你在虚拟机里得先确认ISO是否挂载了呀 要是没挂上 你find找不到文件的
steptodream 2010-09-18
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 shizhuxiong 的回复:]

我是用的虚拟机,怎么挂载呢
[/Quote]
虚拟机右下角应该有个光盘符号 右键 然后选择你的光盘镜像 然后再右键点连接

然后到linux系统里去 等一下 有时候会自动挂载到/media 你ls -la /media
看看有没有东西 如果没有 那你自己挂载
mount /dev/cdrom /media

然后再按我3楼说的安装!
care365 2010-09-18
  • 打赏
  • 举报
回复
有点明白了,直接把ISO文件加载进去,然后进光盘打开终端输入find命令也可以吧
care365 2010-09-18
  • 打赏
  • 举报
回复
我是用的虚拟机,怎么挂载呢
steptodream 2010-09-18
  • 打赏
  • 举报
回复
This system is not registered with RHN.
RHN support will be disabled.
--------------------------
你用的是RHEL 你没有交费 所以你无法使用官方的yum源!

你有安装光盘吧 把光盘挂载到系统里 然后到光盘里去找gcc
比如你把光盘挂到/media下的
然后find /media -name "gcc*" 找到了会有输出
/media/xxxx/gcc.xx.yy.rpm
然后rpm -ivh /media/xxxx/gcc.xx.yy.rpm
如果提示需要依赖别的包 那就继续用刚才的find把依赖的包找到安装之后 再安装gcc

还有一种方法那就是配置CentOS的yum源 或者把光盘配置成yum源(具体怎么做 你可以google)
care365 2010-09-18
  • 打赏
  • 举报
回复
redhat5的, 在安装reahat的时候除了提示输入密码其他的都没有选项了。

运行命令出现以下问题是为什么呢?

[root@localhost last]# yum -y install gcc gcc-c++

Loading "security" plugin
Loading "rhnplugin" plugin
Loading "installonlyn" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Parsing package install arguments
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
No Match for argument: gcc
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
No Match for argument: gcc-c++
Nothing to do
steptodream 2010-09-18
  • 打赏
  • 举报
回复
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
--------------------
很明显没有c编译器了
你是啥linux发行版 先安装gcc!
如果是redhat系的 yum -y install gcc gcc-c++
如果是debian Ubuntu的话 sudo apt-get install build-essential

23,116

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧