Tag: osx mavericks

节俭rubygem

我不能,为了我的生活,成功运行“gem安装节俭”,在构建gem的原生扩展时,事情就失败了; 这是输出: (acib708) ~ -> gem install thrift Building native extensions. This could take a while… ERROR: Error installing thrift: ERROR: Failed to build gem native extension. /Users/acib708/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb extconf.rb:25:in `’: Use RbConfig instead of obsolete and deprecated Config. extconf.rb:25:in `’: Use RbConfig instead of obsolete and deprecated Config. checking for strlcpy() in string.h… yes […]

无法安装rmagick,找不到pkg-config:命令

我正在尝试在我的Mac OS X v10.9 (Mavericks)机器上安装rmagick。 然而。 我收到这个错误 /usr/local/bin/Magick-config: line 41: pkg-config: command not found /usr/local/bin/Magick-config: line 47: pkg-config: command not found /usr/local/bin/Magick-config: line 50: pkg-config: command not found /usr/local/bin/Magick-config: line 53: pkg-config: command not found checking for stdint.h… yes checking for sys/types.h… yes checking for wand/MagickWand.h… yes /usr/local/bin/Magick-config: line 53: pkg-config: command not found Can’t […]

在Ruby 2.0.0p353(基于rvm的安装)下安装Nokogiri 1.6.1失败(OSX Mavericks)?

我试图在Ruby和RVM下安装Nokogiri 1.6.1,但是失败了,出现以下错误: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /Users/lmo0/.rvm/rubies/ruby-2.0.0-p353/bin/ruby extconf.rb Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-apple-darwin13.0.0/ports/libxml2/2.8.0… OK Running ‘configure’ for libxml2 2.8.0… OK Running ‘compile’ for libxml2 2.8.0… OK Running ‘install’ for libxml2 2.8.0… OK Activating libxml2 2.8.0 (from /Users/lmo0/.rvm/gems/ruby-2.0.0-p353/gems/nokogiri-1.6.1/ports/x86_64-apple-darwin13.0.0/libxml2/2.8.0)… Extracting libxslt-1.1.26.tar.gz into tmp/x86_64-apple-darwin13.0.0/ports/libxslt/1.1.26… OK Running ‘configure’ for libxslt 1.1.26… ERROR, review ‘tmp/x86_64-apple-darwin13.0.0/ports/libxslt/1.1.26/configure.log’ to see […]

无法加载此类文件 – ruby​​gems.rb

好吧,它让我抓狂! 我尝试运行ruby / rails。 MacBook-Pro-2:Library me$ rvm list rvm rubies ruby-1.9.3-p194 [ x86_64 ] ruby-2.1.0 [ x86_64 ] # => – current # =* – current && default # * – default MacBook-Pro-2:Library me$ rvm use 2.1.0 Using /usr/local/rvm/gems/ruby-2.1.0 :1:in `require’: cannot load such file — rubygems.rb (LoadError) from :1:in `’ MacBook-Pro-2:Library me$gem list :1:in […]

在小牛上安装任何版本的ruby和RVM

我刚刚升级到osx mavericks,我想安装ruby 2.0,但我得到configure: error: cannot run C compiled programs. 错误。 我用rvm get stable更新rvm,然后键入rvm install 2.0.0并得到一个错误,指示我一个日志文件。 日志文件包含: configure: WARNING: unrecognized options: –without-tcl, –without-tk checking build system type… x86_64-apple-darwin13.0.0 checking host system type… x86_64-apple-darwin13.0.0 checking target system type… x86_64-apple-darwin13.0.0 checking whether the C compiler works… yes checking for C compiler default output file name… a.out checking for […]

升级到OSX Mavericks后修复postgresql

最近升级到OSX Mavericks已经破坏了我的Rails应用程序的数据库连接。 当我尝试从数据库中获取时,服务器返回以下错误: PG::ConnectionBad (could not connect to server: Connection refused Is the server running on host “localhost” (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host “localhost” (127.0.0.1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused […]