Tag: macos

gem install nokogiri -v’1.5.11’因make而失败:/ usr / local / bin / gmkdir:没有这样的文件或目录

Ruby版本:2.2.5 Mac OSX:10.11.5 gem版:2.4.8 Bundler版本:1.12.5 当我运行gem install nokogiri -v ‘1.5.11’ ,我收到以下错误: Building native extensions. This could take a while… ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. /Users/hwpeng/.rvm/rubies/ruby-2.2.5/bin/ruby -r ./siteconf20160707-31800-1ejznjc.rb extconf.rb ====ignored multiple lines==== make “DESTDIR=” install make: /usr/local/bin/gmkdir: No such file or directory make: *** [.RUBYARCHDIR.-.nokogiri.time] Error 1 make install failed, […]

heroku命令存在于这些Ruby版本中?

用rbenv更新我的Ruby版本后,我无法使用Heroku命令行工具。 我收到了这个错误: > heroku rbenv: heroku: command not found The `heroku’ command exists in these Ruby versions: 2.0.0-p195 从toolbelt.heroku.com重新安装工具带没有帮助。

gem install pg error:无法理解Yosemite w / Ruby 2.1.5上的kern.osversion`14.0.0′

我使用RVM安装Ruby-2.1.5并再次运行bundle。 现在pg gem将无法安装,我收到此错误: gem install pg -v ‘0.17.1’ — –with-pg-config=/Applications/Postgres.app/Contents/Versions/9.3/bin/pg_config Building native extensions with: ‘–with-pg-config=/Applications/Postgres.app/Contents/Versions/9.3/bin/pg_config’ This could take a while… ERROR: Error installing pg: ERROR: Failed to build gem native extension. /Users/diego/.rvm/rubies/ruby-2.1.5/bin/ruby -r ./siteconf20141120-33258-108chh6.rb extconf.rb –with-pg-config=/Applications/Postgres.app/Contents/Versions/9.3/bin/pg_config Using config values from /Applications/Postgres.app/Contents/Versions/9.3/bin/pg_config checking for libpq-fe.h… yes checking for libpq/libpq-fs.h… yes checking for pg_config_manual.h… yes checking for […]

什么是Mac的Ruby开发环境?

我曾经在Mac上开发Java并且运行良好,仅使用终端和IntelliJ的组合。 什么是在mac上运行Ruby开发的好工具

“gem install rails”在mac OS X上为rbenv提供FilePermissionError

我已经阅读了有关此问题的所有其他Stackoverflowpost,但没有看到任何合适的rbenv解决方案,所以我会在这里发布。 (大多数其他post建议使用RVM,或者OP已经运行了sudo gem install rails )。 当我运行gem install rails (没有sudo )时,我明白了 ERROR: While executing gem … (Gem::FilePermissionError) You don’t have write permissions for the /Library/Ruby/Gems/2.0.0 directory. 是/Library/Ruby/Gems/2.0.0正确的位置? 为什么我会收到此错误? 我在一台没有太多安装的新笔记本电脑上。 我有自制软件,rbenv和ruby 2.0

OS X上的xslt 2.0和Ruby

我试图针对XSLT 2.0表解析XML文档。 但是,我被告知OSX 10.5.x上的库仅支持XSLT 1.0操作。 当我看到xsltproc时,我得到了这个: hmasing $ xsltproc –version使用libxml 20616,libxslt 10112和libexslt 810 xsltproc针对libxml 20616编译,libxslt 10112和libexslt 810 libxslt 10112针对libxml编译20616 libexslt 810针对libxml编译20616 有没有人有一个简明的指南来安装XSLT 2.0,ruby xslt gems来对抗那些libs,还有一些好的方法可以通过我的方式? 请假设我在任何指示中都是一个完全白痴。 任何帮助是极大的赞赏! 汉斯

ln:/usr/lib/libmysqlclient.18.dylib:文件存在

rake aborted! dlopen(/Users/ava/.rvm/gems/ruby-2.0.0-p247/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle, 9): Library not loaded: /usr/local/lib/libmysqlclient.18.dylib Referenced from: /Users/ava/.rvm/gems/ruby-2.0.0-p247/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle Reason: image not found – /Users/ava/.rvm/gems/ruby-2.0.0-p247/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle` 如下解决: $ sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib \ /usr/lib/libmysqlclient.18.dylib ln: /usr/lib/libmysqlclient.18.dylib: File exists 我的设置: OSX 10.8.4 MySQL 5.1.71 libmysqlclient.16.dylib $ locate libmysqlclient.16.dylib /usr/lib/libmysqlclient.16.dylib /usr/local/Cellar/mysql51/5.1.71/lib/mysql/libmysqlclient.16.dylib libmysqlclient.18.dylib $ locate libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib 在.bash_profile ,我有 export PATH=”/usr/local/bin:$HOME/.rvm/bin:$HOME/bin:$PATH” export DYLD_LIBRARY_PATH=/usr/local/bin/mysql 如何让这个耙子运行? 我应该在/usr/local/Cellar/mysql51/5.1.71/lib/mysql下有libmysqlclient.18.dylib吗? 如果是,我该如何创建它?

安装CocoaPods的问题

我想在OSX中设置CocoaPods(我正在运行10.8.2) – 所以我跑了 sudo gem install cocoapods 它成功了,我得到了 – ‘成功安装cocoapods-0.17.2 1 gem安装’ 然后……我尝试pod setup ‘-bash:pod:command not found’ 如何让命令行识别此命令?

gem install mysql失败

我按照http://geryit.com/blog/2011/01/installing-mysql-with-rails-on-mac-os-x-snow-leopard/上的说明进行操作,包括通过macport安装ruby。 每当我执行gem install mysql时 ,我都会收到以下错误 bash-3.2# gem install mysql Building native extensions. This could take a while… ERROR: Error installing mysql: ERROR: Failed to build gem native extension. /opt/local/bin/ruby extconf.rb checking for mysql_ssl_set()… no checking for rb_str_set_len()… no checking for rb_thread_start_timer()… no checking for mysql.h… no checking for mysql/mysql.h… no *** extconf.rb failed *** Could […]

如何使用ruby 1.9.2编译vim

我尝试用ruby支持重新编译vim因为我注意到vim仍然使用1.8.7(这是Snow Leopard上的默认ruby版本)。 Ruby 1.9.2通过rvm安装。 编译时 ./configure –enable-rubyinterp –enable-gui=no –disable-nls –enable-cscope –prefix=/Users/madhatter 我从make中得到以下错误: ld: library not found for -lruby.1.9.1 collect2: ld returned 1 exit status make[1]: *** [vim] Error 1 make: *** [first] Error 2 然后我从googlecode克隆了实际的存储库并尝试构建它。 make中没有错误,但是启动vim会导致以下错误: dyld: Symbol not found: _environ Referenced from: /Users/madhatter/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.1.9.1.dylib Expected in: flat namespace in /Users/madhatter/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.1.9.1.dylib [1] 41782 trace trap vim […]