Tag: osx mavericks

在Mavericks安装后,Sublime Text 2命令行无效

我已经准备好通过Stack Overflow上的其他线程,尽管我付出了努力,但这个问题似乎无法解决。 自从安装OS X Mavericks后,我无法从命令行打开Sublime Text 2。 我试过遵循以下准则: Setup Sublime Text 2 on OSX Mavericks for Ruby on Rails 当我从终端运行时,Sublime弹出,这样很好: http : //benkwok.wordpress.com/2013/11/17/setup-sublime-text-2-on-osx-mavericks-for-ruby-on-导轨/ 我已将这些行添加到bash_profile的底部: export PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$PATH↲ export EDITOR=’subl -w’ 但是,当我尝试运行时: source ~/.bash_profile 从命令行我得到: -bash: rbenv: command not found -bash: rbenv: command not found -bash: Gemfile: command not found 当我尝试subl。 从包含文件的文件夹内部,我收到以下错误: -bash: subl: command not found 所以,我的bash_profile明显配置错误的小牛队。 […]

Ruby on Rails:没有将Array隐式转换为String(DEVISE)

我最近从10.7升级到OSX Mavericks 10.9,从那时起它给我带来了很多麻烦。 我升级了Xcode,命令行工具,重新安装了自制软件和rvm,最后让rails工作(我花了5个小时让rmagick再次工作)。 但是,现在当我尝试从我的localhost访问我的应用程序时,我收到此错误 no implicit conversion of Array into String 这是rails日志: Started GET “/” for 127.0.0.1 at 2014-05-05 02:20:00 -0700 Processing by AccountsController#dashboard as HTML Completed 500 Internal Server Error in 0.3ms TypeError (no implicit conversion of Array into String): app/controllers/application_controller.rb:26:in `check_correct_subdomain’ Rendered /Users/kibaek/.rvm/gems/ruby-2.1.0@onvard/gems/actionpack-3.2.16/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms) Rendered /Users/kibaek/.rvm/gems/ruby-2.1.0@onvard/gems/actionpack-3.2.16/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms) Rendered /Users/kibaek/.rvm/gems/ruby-2.1.0@onvard/gems/actionpack-3.2.16/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (7.1ms) […]

更新到OS X 10.9 Mavericks后,使用Rails和postgres引发麻烦

在更新到OS X 10.9 Mavericks之后,我尝试启动Rails 3应用程序,但是与PG数据库的连接无法正常工作。 检查PGAdmin III,数据库仍在那里,它工作正常。 所以我尝试重新安装pg gem: gem uninstall pg gem install pg 但是最后一个命令没有成功,并给出以下错误: 构建原生扩展。 这可能需要一段时间…错误:安装pg时出错: 错误:无法构建gem原生扩展。 /Users/XXX/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb checking for pg_config… yes Using config values from / usr / local / bin / pg_config * extconf.rb失败*由于某些原因无法创建Makefile,可能缺少必要的库和/或头文件。 检查mkmf.log文件以获取更多详细信息。 您可能需要配置选项。 /Users/XXX/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:381:in`try_do’:编译器无法生成可执行文件。 (RuntimeError)您必须首先安装开发工具。 来自/Users/XXX/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:461:in try_link0′ from /Users/XXX/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:476:in来自extconf.rb的try_link’:39:in” 我猜这个问题与Xcode开发人员工具有关 。 我将Xcode更新到最新版本,但这并没有解决问题。 你知道怎么解决吗?

在小牛队上安装Rails

不知道发生了什么,但是当我升级到Mavericks时,它说Rails没有安装。 我执行了以下命令: rails –version 它说“当前没有安装Rails并运行sudo gem install rails”。 我运行sudo gem install rails并获得以下内容: ERROR: Error installing rails: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb mkmf.rb can’t find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/json-1.8.1 for inspection. 更新: 我运行命令gcc –version并得到以下内容: Configured with: –prefix=/Applications/Xcode.app/Contents/Developer/usr –with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/c++/4.2.1 Apple LLVM version 5.0 (clang-500.2.76) […]

gem install autotest-fsevent在更新到macosx mavericks后失败

更新到Maveriks后安装gem autotest-fsevent遇到问题 这是我得到的错误; Mellon:public lasdolphin$ sudo gem install autotest-fsevent Building native extensions. This could take a while… ERROR: Error installing autotest-fsevent: ERROR: Failed to build gem native extension. /Users/lasdolphin/.rvm/rubies/ruby-1.9.3-p448/bin/ruby extconf.rb extconf.rb:24:in `’: Darwin 13 is not (yet) supported (RuntimeError) Gem files will remain installed in /Users/lasdolphin/.rvm/rubies/ruby-1.9.3- p448/lib/ruby/gems/1.9.1/gems/autotest-fsevent-0.2.8 for inspection. Results logged to /Users/lasdolphin/.rvm/rubies/ruby-1.9.3- p448/lib/ruby/gems/1.9.1/gems/autotest-fsevent-0.2.8/ext/fsevent/gem_make.out 知道为什么会这样吗?

RVM要求错误

我安装了OS X Mavericks,我正在尝试在终端中运行rvm requirements ,它给了我这个错误。 Installing required packages: autoconf, automake, libtool, pkgconfig, libyaml, libffi, readline, libksba, curl-ca-bundle, gdbm…………. Error running ‘requirements_osx_port_libs_install autoconf automake libtool pkgconfig libyaml libffi readline libksba curl-ca-bundle gdbm’, please read /Users/Alex/.rvm/log/ruby-1.9.3-p448/1374263757_package_install_autoconf_automake_libtool_pkgconfig_libyaml_libffi_readline_libksba_curl-ca-bundle_gdbm.log Requirements installation failed with status: 1.

Mavericks上的Rails + MySQL – 未加载库:libmysqlclient.18.dylib

当我在我的localhost(OSX Mavericks)上运行Rails( rails s )应用程序时,我收到此错误 message:/Users/adam/.rvm/gems/ruby-2.0.0-p481/gems/mysql2-0.3.16/lib/mysql2.rb:8:in `require’: dlopen(/Users/adam/.rvm/gems/ruby-2.0.0-p481/extensions/x86_64-darwin-13/2.0.0-static/mysql2-0.3.16/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib (LoadError) Referenced from: /Users/adam/.rvm/gems/ruby-2.0.0-p481/extensions/x86_64-darwin-13/2.0.0-static/mysql2-0.3.16/mysql2/mysql2.bundle Reason: image not found – /Users/adam/.rvm/gems/ruby-2.0.0-p481/extensions/x86_64-darwin-13/2.0.0-static/mysql2-0.3.16/mysql2/mysql2.bundle from /Users/adam/.rvm/gems/ruby-2.0.0-p481/gems/mysql2-0.3.16/lib/mysql2.rb:8:in `’ from /Users/adam/.rvm/gems/ruby-2.0.0-p481@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:in `require’ from /Users/adam/.rvm/gems/ruby-2.0.0-p481@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require’ from /Users/adam/.rvm/gems/ruby-2.0.0-p481@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:in `each’ from /Users/adam/.rvm/gems/ruby-2.0.0-p481@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:in `block in require’ from /Users/adam/.rvm/gems/ruby-2.0.0-p481@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in `each’ from /Users/adam/.rvm/gems/ruby-2.0.0-p481@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in `require’ from /Users/adam/.rvm/gems/ruby-2.0.0-p481@global/gems/bundler-1.6.2/lib/bundler.rb:132:in `require’ from /Users/adam/rubydev/logistadvise/config/application.rb:7:in […]

如何在Mavericks上修复Gemfile中的libv8错误?

当我运行bundle install我得到了 An error occurred while installing libv8 (3.11.8.17), and Bundler cannot continue. Make sure that `gem install libv8 -v ‘3.11.8.17’` succeeds before bundling. Libv8依赖于therubyracer和therubyracergem。 我在3.11.8.17上锁定了我的Gemfile.lock libv8 gem 但我发现我可以将它降级到3.3.10.4 bundle install / update:libv8(therubyracer)安装失败(带有本机扩展) 怎么做? 我也发现工作3.11.8.17 gem但不知道如何在我的系统上实现它。 https://github.com/cowboyd/libv8/issues/107#issuecomment-26146673

无法在OS X Mavericks上降级Ruby

OS X 10.9附带ruby 2.0.0p195,但我需要安装Ruby 1.8.7。 我一直遇到错误。 我有Xcode5-DP安装,我相信也安装了命令行工具。 在终端: sudo rvm install 1.8.7 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10/x86_64/ruby-1.8.7-p371. Continuing with compilation. Please read ‘rvm mount’ to get more information on binary rubies. Installing requirements for osx, might require sudo password. Certificates in ‘/usr/local/etc/openssl/cert.pem’ already are up […]

安装libv8 3.11.8.3时出错

我正在运行全新安装的OSX 10.9 Mavericks和XCode 5.0.1。 当我试图在我的项目中运行bundle install时,它无法安装libv8 gem。 这是输出: ERROR: Error installing libv8: ERROR: Failed to build gem native extension. /Users/user1/.rvm/rubies/ruby-1.9.3-p448/bin/ruby extconf.rb creating Makefile Configured with: –prefix=/Applications/Xcode.app/Contents/Developer/usr –with-gxx-include-dir=/usr/include/c++/4.2.1 Unable to find a compiler officially supported by v8. It is recommended to use GCC v4.4 or higher Using compiler: g++ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: /Users/user1/.rvm/gems/ruby-1.9.3-p448/gems/libv8-3.11.8.3/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o has no symbols In […]