首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > Ruby Rails >

[跪求ruby大牛]安装ruby失败,大家来帮忙看看啊解决方法

2012-02-11 
[跪求ruby大牛]安装ruby失败,大家来帮忙看看啊我是这样编译ruby的:# ./configure --prefix$HOME/32b/lcia

[跪求ruby大牛]安装ruby失败,大家来帮忙看看啊
我是这样编译ruby的:

# ./configure --prefix=$HOME/32b/lciahp2/ruby-1.9.1-p243/install --enable-install-doc --without-gcc --enable-pthread
# cd $HOME/32b/lciahp2
# tar xf ruby-1.9.1-p243.tar ruby-1.9.1-p243/lex.c
# cd $HOME/32b/lciahp2/ruby-1.9.1-p243
# touch lex.c
# make


此时出了这么个问题:
  ld -b -o .ext/ia64-hpux11.23/enc/trans/utf_16_32.sl enc/trans/utf_16_32.o -L. -L. -L. -E -lpthread -lrt -ldld -ldl -lm
compiling bigdecimal
/home/beadev/32b/lciahp2/ruby-1.9.1-p243/lib/mkmf.rb:362:in `try_do': The complier failed to generate an executable file. (RuntimeError)
You have to install development tools first.
  from /home/beadev/32b/lciahp2/ruby-1.9.1-p243/lib/mkmf.rb:425:in `try_compile'
  from /home/beadev/32b/lciahp2/ruby-1.9.1-p243/lib/mkmf.rb:471:in `try_static_assert'
  from /home/beadev/32b/lciahp2/ruby-1.9.1-p243/ext/bigdecimal/extconf.rb:5:in `<top (required)>'
  from ./ext/extmk.rb:151:in `load'
  from ./ext/extmk.rb:151:in `extmake'
  from ./ext/extmk.rb:440:in `block in <main>'
  from ./ext/extmk.rb:436:in `each'
  from ./ext/extmk.rb:436:in `<main>'
*** Error exit code 1

Stop.




[解决办法]
查看ext/bigdecimal/mkmf.log看看是什么问题

热点排行