http://lenni.info/blog/2012/05/installing-ruby-1-9-3-on-ubuntu-12-04に従って、Ruby バージョンを1.8
(デフォルト) から(Pangolin の最新)に切り替えようとしました-正確なペンゴリン/ . を使用してこれを行っています。1.9.3
apt
SOに関する関連する質問に対する他の解決策には関連がありapt-get install ruby1.9.3-dev
ますが、私は間違いなくそれを持っています。
$ sudo gem install idn
Building native extensions. This could take a while...
ERROR: Error installing idn:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
checking for main() in -lidn... yes
checking for idna.h... yes
checking for punycode.h... yes
checking for stringprep.h... yes
creating Makefile
make
compiling idn.c
compiling idna.c
idna.c: In function ‘toASCII’:
idna.c:88:37: error: ‘struct RString’ has no member named ‘ptr’
idna.c: In function ‘toUnicode’:
idna.c:128:41: error: ‘struct RString’ has no member named ‘ptr’
make: *** [idna.o] Error 1
Gem files will remain installed in /var/lib/gems/1.9.1/gems/idn-0.0.2 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/idn-0.0.2/ext/gem_make.out
インストールしたことも確認しましたがgcc
、から再度インストールされていapt
ます。
$ ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]