Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/313.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 在Mac OS X Lion上安装带有RVM的JRuby失败_Java_Macos_Gem_Jruby - Fatal编程技术网

Java 在Mac OS X Lion上安装带有RVM的JRuby失败

Java 在Mac OS X Lion上安装带有RVM的JRuby失败,java,macos,gem,jruby,Java,Macos,Gem,Jruby,我使用的是MacOSXLion(10.7.3) 当我说“rvm安装jruby”时,我得到以下信息: > rvm install jruby jruby-1.6.7 - #fetching jruby-1.6.7 - #extracted to /Users/daniel.cox/.rvm/src/jruby-1.6.7 (already extracted) Building Nailgun jruby-1.6.7 - #installing to /Users/daniel.cox/.r

我使用的是MacOSXLion(10.7.3)

当我说“rvm安装jruby”时,我得到以下信息:

> rvm install jruby
jruby-1.6.7 - #fetching
jruby-1.6.7 - #extracted to /Users/daniel.cox/.rvm/src/jruby-1.6.7 (already extracted)
Building Nailgun
jruby-1.6.7 - #installing to /Users/daniel.cox/.rvm/rubies/jruby-1.6.7
jruby-1.6.7 - #importing default gemsets (/Users/daniel.cox/.rvm/gemsets/)
Copying across included gems
Listening for transport dt_socket at address: 57301
Building native extensions.  This could take a while...
/bin/sh: line 1: 23840 Abort trap: 6           /Users/daniel.cox/.rvm/rubies/jruby-1.6.7/bin/jruby extconf.rb 2>&1
ERROR:  Error installing jruby-launcher:
        ERROR: Failed to build gem native extension.

                /Users/daniel.cox/.rvm/rubies/jruby-1.6.7/bin/jruby extconf.rb
                ERROR: transport error 202: bind failed: Address already in use
                ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
                JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]
                FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)


                Gem files will remain installed in /Users/daniel.cox/.rvm/gems/jruby-1.6.7/gems/jruby-launcher-1.0.12-java for inspection.
                Results logged to /Users/daniel.cox/.rvm/gems/jruby-1.6.7/gems/jruby-launcher-1.0.12-java/./gem_make.out
这是怎么回事?它似乎试图启动一些服务器两次,在构建“jruby启动器”的过程中。为什么要启动服务器呢

同样的安装在我的Ubuntu11.10机器上运行良好

谢谢


-Daniel

此外,每次我在“rvm使用jruby”之后运行ruby时,它都会说“正在侦听地址为57301的传输dt_套接字”。