English 中文(简体)
能够在乌兰巴图9.10使用废墟来安装薄板。
原标题:Can t install thin by using rubygems on Ubuntu 9.10

我怎么能够纠正这一错误,并安装薄板或其他宝石?

$ sudo gem install thin
Building native extensions.  This could take a while...
ERROR:  Error installing thin:
    ERROR: Failed to build gem native extension.

/usr/bin/ruby1.9.1 extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/usr/bin/ruby1.9.1
/usr/lib/ruby/1.9.1/mkmf.rb:362:in `try_do : The complier failed to generate an executable file. (RuntimeError)
You have to install development tools first.
    from /usr/lib/ruby/1.9.1/mkmf.rb:425:in `try_compile 
    from /usr/lib/ruby/1.9.1/mkmf.rb:543:in `try_var 
    from /usr/lib/ruby/1.9.1/mkmf.rb:791:in `block in have_var 
    from /usr/lib/ruby/1.9.1/mkmf.rb:668:in `block in checking_for 
    from /usr/lib/ruby/1.9.1/mkmf.rb:274:in `block (2 levels) in postpone 
    from /usr/lib/ruby/1.9.1/mkmf.rb:248:in `open 
    from /usr/lib/ruby/1.9.1/mkmf.rb:274:in `block in postpone 
    from /usr/lib/ruby/1.9.1/mkmf.rb:248:in `open 
    from /usr/lib/ruby/1.9.1/mkmf.rb:270:in `postpone 
    from /usr/lib/ruby/1.9.1/mkmf.rb:667:in `checking_for 
    from /usr/lib/ruby/1.9.1/mkmf.rb:790:in `have_var 
    from extconf.rb:16:in ` 


Gem files will remain installed in /var/lib/gems/1.9.1/gems/eventmachine-0.12.10 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/eventmachine-0.12.10/ext/gem_make.out

添加信息如下:

$ cat /etc/issue
Ubuntu 9.10 
 l
$ dpkg -l | grep ruby
ii  libreadline-ruby1.9.1             1.9.1.243-2                   Readline interface for Ruby 1.9.1
ii  libruby1.9.1                      1.9.1.243-2                   Libraries necessary to run Ruby 1.9.1
ii  ruby1.9.1                         1.9.1.243-2                   Interpreter of object-oriented scripting lan
ii  ruby1.9.1-dev                     1.9.1.243-2                   Header files for compiling extension modules
ii  rubygems1.9.1                     1.3.5-1ubuntu2                package management framework for Ruby librar
$ ruby -v
ruby 1.9.1p243 (2009-07-16 revision 24175) [x86_64-linux]
$ gem list

*** LOCAL GEMS ***

rack (1.1.0)
sinatra (1.0)
最佳回答

i)

ERROR:  Error installing thin:
    ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... yes
checking for rb_thread_blocking_region()... no
checking for inotify_init() in sys/inotify.h... yes
checking for writev() in sys/uio.h... yes
checking for rb_thread_check_ints()... no
checking for rb_time_new()... yes
checking for sys/event.h... no
checking for epoll_create() in sys/epoll.h... yes
checking for main() in -lcrypto... no
creating Makefile

make
g++ -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DHAVE_INOTIFY_INIT -DHAVE_INOTIFY -DHAVE_WRITEV -DHAVE_WRITEV -DHAVE_RB_TIME_NEW -DOS_UNIX -DHAVE_EPOLL_CREATE -DHAVE_EPOLL -DWITHOUT_SSL -I/include/include    -fPIC -fno-strict-aliasing -g -g -O2  -fPIC    -c emwin.cpp
make: g++: Command not found
make: *** [emwin.o] Error 127

它提到,“g++”缺失,因此:

sudo apt-get install g++

之后:

sudo gem install thin

工作

并且,i m 不能确定该装置可能有任何作用,但是,由于安装了64个轨道,有时是作为防范措施,我安装了32个校准:

sudo apt-get install ia32libs

但是,一俟设立新的64个轨道服务器,总能安装32个校准机。

问题回答

暂无回答




相关问题
Add a changing icon to Ubuntu Panel

What would be the most simple way of adding and changing an icon in the Ubuntu (Gnome) Panel? I m looking for something as simple as shell scripting, but I m not restricted to that. Will write a ...

Configuring kernel

After create a new system call, how to update the kernel? I tried these lines, make-kpkg clean fakeroot make-kpkg -initrd -append-to-version=-custom kernel_image kernel_headers But Ubuntu asked me ...

save Exceptions to file in python

I want to save all following Exceptions in a file. The reason why I need this is because the IDLE for python 3.1.1 in Ubuntu raises an Exception at calltipps, but close to fast, that it isn t readble. ...

How can i monitor system statistics in kubuntu using Java?

i am doing a project related to configuration and memory analyzer for kubuntu. i want to display the system statistics information like CPU usage, RAM usage and proceses etc. graphically using an ...

How to pass "--external-locking" for mysqld in Ubuntu

I would like to start my mysql server with the --external-locking option. As mysqld is run by the /etc/init.d/mysql script ubuntu (karmic), I guess that s where I should set this "--external-locking" ...

"g++" and "c++" compiler

I just found on my Ubuntu, there are two different C++ compilers: /usr/bin/g++ and /usr/bin/c++. I am not familiar with the latter, but man c++ just jumps to the manpage of gcc. I wonder what is their ...

热门标签