Tag: osx yosemite

Yosemite在WiFi上升级到10.10.3后,Rails服务器在网络上不可见

我的机器上运行的rails服务器可用于本地网络,一切正常,我可以使用本地服装192.168.xx:3000从其他设备访问我的服务器,在更新操作系统到10.10.3之后(我以前有优胜美地,但我不记得版本)这不再有效,我的防火墙被禁用,我试图使用“rails server –binding = 0.0.0.0”启动服务器,但它仍然不可见其他网络上的设备。 编辑:我现在看到问题是只有当我使用WIFI如果我通过霹雳和以太网连接一切正常 有谁知道如何解决这个问题? 谢谢!

在Yosemite 10.10.3上安装Nokogiri

我有: Mac OS X Yosemite 10.10.3 MacPorts(不是Brew) 系统中的Ruby 2(不是RVM) 我想安装Nokogiri并尝试: port install nokogiri 得到了: Building native extensions. This could take a while… ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -r ./siteconf20150323-30174-1mqhl4i.rb extconf.rb checking if the C compiler accepts … yes checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future… no Building nokogiri […]

在Yosemite上安装Ruby 1.9.2时出错

我在Yosemite上使用rvm安装ruby 1.9.2时遇到错误。 有人能帮帮我吗? 我更新了homebrew和rvm。 我在这个项目上和其他人一起工作,所以我无法升级ruby。 我在下面输入了我的输出。 提前谢谢! Kanyons-MacBook-Pro:~ USERNAME$ rvm install 1.9.2-head ruby-1.9.2-head – #removing src/ruby-1.9.2-head.. Checking requirements for osx. Certificates in ‘/usr/local/etc/openssl/cert.pem’ are already up to date. Requirements installation successful. Installing Ruby from source to: /Users/USERNAME/.rvm/rubies/ruby-1.9.2-head, this may take a while depending on your cpu(s)… HEAD is now at 5d9f08f bump patchlevel From git://github.com/ruby/ruby […]

在Yosemite中安装Ruby时出错

我最近将我的OS X更新到10.10,然后面临通过RVM安装ruby的问题。 gcc46存在依赖性,我无法解决。 任何帮助表示赞赏。 下面是错误堆栈。 rvm reinstall ruby-1.9.3-p547 ruby-1.9.3-p547 – #removing src/ruby-1.9.3-p547 – please wait ruby-1.9.3-p547 – #removing rubies/ruby-1.9.3-p547 – please wait Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.10/x86_64/ruby-1.9.3-p547. Continuing with compilation. Please read ‘rvm help mount’ to get more information on binary rubies. Checking requirements for […]

在OS X 10.10上,gem install therubyracer -v 0.11.4失败

按照这里的步骤“gem install therubyracer -v’0.10’”在osx mavericks上没有安装 ,我能够得到therubyracer -v 0.10.2和0.12.0来安装好,但不是0.11.4。 gem install therubyracer -v 0.11.4 返回: Building native extensions. This could take a while… ERROR: Error installing therubyracer: ERROR: Failed to build gem native extension. /Users/thooper/.rbenv/versions/2.1.2/bin/ruby -r ./siteconf20150102-7132-9ct9a4.rb extconf.rb creating Makefile Compiling v8 for x64 Using python 2.7.9 Configured with: –prefix=/Applications/Xcode.app/Contents/Developer/usr –with-gxx-include-dir=/usr/include/c++/4.2.1 Unable to find a compiler […]

无法在Yosemite DP 7上安装Cocoapods

我在安装在单独分区上的Yosemite DP 7上安装Cocoapods时遇到问题。 我已经尝试按照Cocoapods上的指令使用Xcode 6和10.10 Yosemite,并且在问题( https://github.com/CocoaPods/CocoaPods/issues/2219 )中由于Stack Overflow链接上提出的相同解决方案而关闭。 我继续收到以下错误: Rasmuss-MacBook-Pro:~ rasmusth$ sudo gem install cocoapods Building native extensions. This could take a while… ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension. “/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby” -rubygems /Library/Ruby/Gems/2.0.0/gems/rake-0.9.6/bin/rake RUBYARCHDIR=/Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.17.0/ext RUBYLIBDIR=/Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.17.0/ext /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb checking for -std=c99 option to compiler… *** extconf.rb failed *** Could not create […]

如何安装旧版Jekyll?

我想安装Jekyll 1.5.1版(在Mac上)。 是否有可能做到这一点? 我找到了一些能够降级的东西,但我发现很难相信没有办法安装旧版本。 谢谢!

OS X Yosemite的Ruby错误

我刚刚升级到OS X Yosemite并遇到了运行我的Rails应用程序的各种问题。 我经常看到以下错误: ruby(11958,0x7fff7e430300) malloc: *** error for object 0x7f880b801808: incorrect checksum for freed object – object was probably modified after being freed. *** set a breakpoint in malloc_error_break to debug Abort trap: 6 任何想法如何解决这一问题? 编辑 我尝试按照此页面上的建议操作: 如何让Ruby / Homebrew / RVM在Yosemite上运行? 但是当我编辑brew.rb将路径更改为“Current”时,我收到错误: Homebrew requires Leopard or higher. For Tiger support, see: https://github.com/mistydemeo/tigerbrew 解 […]

rails服务器无法启动; getaddrinfo:提供nodename或servname,或者未知(SocketError)

我还没有找到问题的解决方案,但是几天前有人已经问过同样的问题 – ( Rails Server Keeps Exiting(SocketError) ) 启动rails服务器后,系统返回一些我无法理解的错误。 要在我的Mac上安装Ruby on Rails,我做了http://railsapps.github.io/installrubyonrails-mac.html上列出的所有内容。 这是我的终端回复: $ rails server => Booting WEBrick => Rails 4.2.0 application starting in development on http://localhost:3000 => Run `rails server -h` for more startup options => Ctrl-C to shutdown server [2015-02-28 02:14:46] INFO WEBrick 1.3.1 [2015-02-28 02:14:46] INFO ruby 2.2.0 (2014-12-25) [x86_64-darwin14] Exiting […]

优胜美地升级破坏了ruby.h

自从升级到Yosemite后,我在尝试构建包含ruby.h任何内容时遇到此错误: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby.h:33: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby/ruby.h:24:10: fatal error: ‘ruby/config.h’ file not found #include “ruby/config.h” ^ 1 error generated. make[1]: *** [objects/if_ruby.o] Error 1 make[1]: *** Waiting for unfinished jobs…. make: *** [first] Error 2 当然,/ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby/config.h确实缺少/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby/config.h 。 $ ls -laF /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby/ total 72 drwxr-xr-x 21 root wheel 714 Jul 29 21:56 ./ drwxr-xr-x 5 […]