My ruby version is 2.2.0
我的ruby版本是2.2.0
As a part of installing manageiq software, I have to run the following install:
作为安装manageiq软件的一部分,我必须运行以下安装:
gem install io-extra -v '1.2.6'
gem安装io-extra -v '1.2.6'
I get this error:
我得到这个错误:
eugene@3b4d8a92ac5d:~/manageiq/vmdb/manageiq/vmdb$ gem install io-extra -v '1.2.6'
Building native extensions. This could take a while...
ERROR: Error installing io-extra:
ERROR: Failed to build gem native extension.
/home/eugene/.rvm/rubies/ruby-2.2.0/bin/ruby -r ./siteconf20150211-16945-9agvpk.rb extconf.rb
checking for stdint.h... yes
checking for sys/resource.h... yes
checking for sys/uio.h... yes
checking for closefrom()... no
checking for fdwalk()... no
checking for directio()... no
checking for pread()... yes
checking for pwrite()... yes
checking for writev()... yes
checking for rb_str_set_len() in ruby.h... yes
checking for rb_thread_blocking_region()... no
checking for ttyname()... yes
checking for O_DIRECT in sys/types.h,fcntl.h... yes
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling io/extra.c
In file included from io/extra.c:41:0:
/home/eugene/.rvm/rubies/ruby-2.2.0/include/ruby-2.2.0/ruby/backward/rubysig.h:14:2: warning: #warning rubysig.h is obsolete [-Wcpp]
#warning rubysig.h is obsolete
^
io/extra.c: In function 'rb_thread_blocking_region':
io/extra.c:52:4: error: 'TRAP_BEG' undeclared (first use in this function)
TRAP_BEG;
^
io/extra.c:52:4: note: each undeclared identifier is reported only once for each function it appears in
io/extra.c:54:4: error: 'TRAP_END' undeclared (first use in this function)
TRAP_END;
^
make: *** [extra.o] Error 1
make failed, exit code 2
Gem files will remain installed in /home/eugene/.rvm/gems/ruby-2.2.0/gems/io-extra-1.2.6 for inspection.
Results logged to /home/eugene/.rvm/gems/ruby-2.2.0/extensions/x86_64-linux/2.2.0/io-extra-1.2.6/gem_make.out
What can I do to overcome this error?
我怎样才能克服这个错误呢?
1 个解决方案
#1
0
The answer came from asking folks at manageiq:
答案来自于问manageiq的人:
http://talk.manageiq.org/t/how-to-properly-install-manageiq-from-source-on-ubuntu/539
http://talk.manageiq.org/t/how-to-properly-install-manageiq-from-source-on-ubuntu/539
They recommended installing ruby 2.0.0 and it worked well.
他们建议安装ruby 2.0.0,并且运行良好。
#1
0
The answer came from asking folks at manageiq:
答案来自于问manageiq的人:
http://talk.manageiq.org/t/how-to-properly-install-manageiq-from-source-on-ubuntu/539
http://talk.manageiq.org/t/how-to-properly-install-manageiq-from-source-on-ubuntu/539
They recommended installing ruby 2.0.0 and it worked well.
他们建议安装ruby 2.0.0,并且运行良好。