Tag: macos

gem安装ruby-audio-1.6.1错误(使用Mac OS 10.9 / homebrew)

我尝试了其他提示,但没有奏效。 (请参阅下面的链接) 恩。 gem安装ruby-audio失败 ruby-audio 1.6.1安装错误(已安装Libsndfile 1.0.25) 我想要一些反馈。 $ gem install ruby-audio Building native extensions. This could take a while… ERROR: Error installing ruby-audio: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb **checking for sndfile.h in /opt/local/include,/usr/local/include,C:/Program Files (x86)/Mega-Nerd/libsndfile/include,C:/Program Files/Mega-Nerd/libsndfile/include… yes checking for sf_open() in -lsndfile-1… no checking for sf_open() in -lsndfile… no** *** […]

如何在雪豹上安装gempg

我需要在雪豹上安装gem pg,因为我在rails codebase上运行rake。 我没有使用postgres。 这是我得到的错误。 $ sudo gem install pg Password: Sorry, try again. Password: Building native extensions. This could take a while… ERROR: Error installing pg: ERROR: Failed to build gem native extension. 看了谷歌搜索的各种博客,但没有一个工作。

如何使用PSequel GUI连接到Mac上的localhost PostgreSQL?

我按照本教程在Mac上安装PG。 这是我第一次在本地使用PG。 在此之前我在Rails项目中使用了很多Sqlite。 我找到了这个PSequel GUI应用程序 ,我刚安装它。 但我不知道如何连接到我的localhost PostgreSQL数据库。 我的是什么: 主机/sockets? 港口? (我使用localhost:3000在本地测试我的Rails应用程序) 用户? 密码? 数据库? 谢谢。

LOAD DATA LOCAL INFILE使用mysql2 gem导致格式错误的数据包错误

我正在尝试发出一个LOAD DATA LOCAL INFILE查询,使用rails 3.1.1下的mysql2 gem(0.3.11)将一些CSV数据加载到表中: class Foo < ActiveRecord::Base def self.load_csv query = "LOAD DATA LOCAL INFILE 'test/foo.csv' REPLACE INTO TABLE foos LINES TERMINATED BY '\n' (title)" ActiveRecord::Base.connection.execute(query) end end (这是一个重现此github问题的错误的示例应用程序)。 这在OS X(Lion)上出现故障,并出现以下错误: Mysql2::Error: Malformed packet: LOAD DATA LOCAL INFILE ‘test/foo.csv’ REPLACE INTO TABLE foos LINES TERMINATED BY ‘ ‘ (title) 服务器上启用了本地infile: mysql> show […]

mac os x上的Tesseract-ocr gem问题

我已经安装了tesseract-ocr(0.1.5)gem。 还安装了依赖项(tesseract / 3.04.00和leptonica / 1.72) Mac OS X Yosemity。 当我执行rake db:migrate出现错误: rake aborted! CompilationError: compile error: see logs at /var/folders/xg/g9n7qvns5z1gsr_yjh09n1nm0000gn/T/.ffi-inline-501/d2f8bb8a1867b800ff8ad69a3b850c91521b3760.log /Users/user/.rvm/gems/ruby-2.2.2@project/gems/ffi-inline-0.0.4.3/lib/ffi/inline/compilers/gcc.rb:35:in `compile’ /Users/user/.rvm/gems/ruby-2.2.2@project/gems/ffi-inline-0.0.4.3/lib/ffi/inline/builders/c.rb:114:in `shared_object’ /Users/user/.rvm/gems/ruby-2.2.2@project/gems/ffi-inline-0.0.4.3/lib/ffi/inline/builders.rb:90:in `block in build’ /Users/user/.rvm/gems/ruby-2.2.2@project/gems/ffi-inline-0.0.4.3/lib/ffi/inline/builders.rb:87:in `instance_eval’ /Users/user/.rvm/gems/ruby-2.2.2@project/gems/ffi-inline-0.0.4.3/lib/ffi/inline/builders.rb:87:in `build’ /Users/user/.rvm/gems/ruby-2.2.2@project/gems/ffi-inline-0.0.4.3/lib/ffi/inline/inline.rb:54:in `singleton_inline’ /Users/user/.rvm/gems/ruby-2.2.2@project/gems/ffi-inline-0.0.4.3/lib/ffi/inline/inline.rb:39:in `inline’ /Users/user/.rvm/gems/ruby-2.2.2@project/gems/tesseract-ocr-0.1.5/lib/tesseract/c/baseapi.rb:30:in `’ /Users/user/.rvm/gems/ruby-2.2.2@project/gems/tesseract-ocr-0.1.5/lib/tesseract/c/baseapi.rb:27:in `’ /Users/user/.rvm/gems/ruby-2.2.2@project/gems/tesseract-ocr-0.1.5/lib/tesseract/c/baseapi.rb:25:in `’ /Users/user/.rvm/gems/ruby-2.2.2@project/gems/tesseract-ocr-0.1.5/lib/tesseract/c/baseapi.rb:25:in `’ /Users/user/.rvm/gems/ruby-2.2.2@project/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:274:in `require’ /Users/user/.rvm/gems/ruby-2.2.2@project/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:274:in `block in require’ /Users/user/.rvm/gems/ruby-2.2.2@project/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:240:in `load_dependency’ /Users/user/.rvm/gems/ruby-2.2.2@project/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:274:in `require’ […]

使用ImageMagick进行Brew链接

安装: ostaptan:~ostap $ brew install imagemagick –disable-openmp –from-source ==> Downloading http://downloads.sf.net/project/machomebrew/mirror/ImageMagick-6.7.7-6.tar.bz2 Already downloaded: /Library/Caches/Homebrew/imagemagick-6.7.7-6.tar.bz2 ==> Patching patching file configure Hunk #1 succeeded at 32371 (offset 447 lines). ==> ./configure –disable-osx-universal-binary –without-perl –prefix=/usr/local/Cellar/imagemagick/6.7.7-6 –enable-shared –disable-static ==> make install Error: The linking step did not complete successfully The formula built, but is not symlinked into /usr/local You […]

使用MAMP 2.2在Mac上“gem install mysql2”

当我尝试在我当前的目录(这是一个新的rails项目)中运行rails server时,它说我需要安装mysql2 gem。 起初,我不知道这意味着什么……然后,我做了一些戳,最后决定安装gem。 但是,我得到了这个超级麻烦的错误(因为我只花了2个小时试图调查,并解决了另一个错误)。 我正处于放弃的边缘,但我真的想试试铁轨。 请帮忙! 目前,如果我运行sudo gem install mysql2 ,或者甚至有些人告诉我在线做, gem install mysql — \ –with-mysql-config=/Applications/MAMP/Library/bin/mysql_config (我有MAMP) ,它给我以下错误: Building native extensions. This could take a while… ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. /Users/vicky/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb checking for ruby/thread.h… yes checking for rb_thread_call_without_gvl() in ruby/thread.h… yes checking for rb_thread_blocking_region()… yes […]

Mac(计算机)给Rails开发人员带来了什么好处?

我试图理解为什么在Mac上发生如此多的Rails开发? 或者这只是一个神话? 有没有确凿的证据支持这一点?

无法更新RubyGems

我在将RubyGems从1.1.1版更新到最新版时遇到了困难。 我尝试过以下方法: gem更新 结果: 更新已安装的gem 批量更新Gem源索引: http : //gems.rubyforge.org/ 无需更新 和 gem install ruby​​gems-update 结果: 批量更新Gem源索引: http : //gems.rubyforge.org/ 批量更新Gem源索引: http : //gems.rubyforge.org/ 错误:安装rubygems-update时出错: rubygems-update需要构建器(> = 0) 和 gem install ruby​​gems-update update_rubygems 结果: 批量更新Gem源索引: http : //gems.rubyforge.org/ 批量更新Gem源索引: http : //gems.rubyforge.org/ 错误:安装rubygems-update时出错: rubygems-update需要构建器(> = 0) 错误:无法在本地或存储库中找到update_rubygems 然后我按照类似问题的建议检查了我是否在我的远程资源中使用了http://gems.rubyforge.org/ 。 这是gem环境: RubyGems环境: – RUBYGEMS版本:1.1.1 – RUBY版本:1.8.6(2008-08-11 patchlevel […]

安装sqlite3(1.3.7)时发生错误,Bundler无法继续

当我使用命令git push heroku master时,我收到此错误。 $ git push heroku master Counting objects: 126, done. Delta compression using up to 8 threads. Compressing objects: 100% (110/110), done. Writing objects: 100% (126/126), 36.61 KiB, done. Total 126 (delta 19), reused 0 (delta 0) —–> Removing .DS_Store files —–> Ruby/Rails app detected —–> Installing dependencies using Bundler version 1.3.2 […]