Tag: homebrew

在使用RVM的OS X上安装Ruby 1.9.3时,“没有可用的gcc46公式”:

我安装了Homebrew,我正在尝试安装RVM: rvm install 1.9.3-head 我收到此错误: 安装所需的包:gcc46 运行’requirements_osx_brew_libs_install gcc46’时出错, 请阅读/Users/mike/.rvm/log/1384918134_ruby-1.9.3-head/package_install_gcc46.log 要求安装失败,状态为:1 brew doctor说我准备酿造了。 在日志中我看到: 错误:下载失败: ftp : //gcc.gnu.org/pub/gcc/infrastructure/gmp-4.3.2.tar.bz2

brew install redis(osx 10.7)

我尝试在bash上通过自制程序在osx 10.7上安装Redis,我收到以下错误: ==> Downloading http://redis.googlecode.com/files/redis-2.6.9.tar.gz Already downloaded: /Library/Caches/Homebrew/redis-2.6.9.tar.gz ==> make -C /private/tmp/redis-wQAX/redis-2.6.9/src CC=cc Error: Permission denied – /usr/local/var/db 我没有安装Redis。 $ ps -aux | grep redis ps: No user named ‘x’ 我找不到解决方案,也不知道该问谁! 如果您有解决方法或解决方案/建议,请告诉我。 谢谢!

-bash:pg_dump:找不到命令

我正在尝试在本地为我的rails应用程序提取生产数据库。 我的本地postgres版本太低,所以我需要从9.4.1更新到Postgresql 9.6.5。 我通过Homebrew安装了Postgres 9.6.6: brew install postgresql@9.6 然后跑了: brew services start postgresql@9.6 但是,当我尝试执行pg_dump我得到-bash: pg_dump: command not found 。 我也尝试更新我的路径: export PATH=”/usr/local/Cellar/postgresql\@9.6/9.6.6/bin:$PATH” 知道我需要做些什么来让pg_dump工作吗?

如何让Sublime Text 2与Ruby on Rails一起使用?

我是Ruby on Rails的新手。 这是我到目前为止所做的: 我已经安装了XCode,Homebrew,RVM,Ruby和Rails。 现在我如何让Sublime Text 2与Ruby on Rails一起使用?

使用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 […]

在rails中的gem中设置tesseract OCR时出错

我正在尝试在我的rails环境中设置tesseract-ocr gem。 我已经运行了brew install tesseract ,然后在应用程序上运行了一个bundle install,并且所有运行都没有错误,但是当启动应用程序( rails s )时,抛出以下错误: /Users/xxxx/.rvm/gems/ruby-1.9.2-p290@xxxx/gems/ffi-inline-0.0.4.3/lib/ffi/inline/compilers/gcc.rb:35:in `compile’: compile error: see logs at /var/folders/66/pm_j0lp94gvcj0qnlcnsx9pw0000gn/T/.ffi-inline-501/4239dac38f2a721e0dc5b3750d71ce2e6fa4acb6.log (CompilationError) 它引用了以下日志文​​件: g++ -dynamic -bundle -fPIC -L/usr/local/Cellar/tesseract/3.02.02/lib -I/usr/local/Cellar/tesseract/3.02.02/include -o /var/folders/66/pm_j0lp94gvcj0qnlcnsx9pw0000gn/T/.ffi-inline-501/4239dac38f2a721e0dc5b3750d71ce2e6fa4acb6.dylib /var/folders/66/pm_j0lp94gvcj0qnlcnsx9pw0000gn/T/.ffi-inline-501/4239dac38f2a721e0dc5b3750d71ce2e6fa4acb6.cpp -llept 2>>/var/folders/66/pm_j0lp94gvcj0qnlcnsx9pw0000gn/T/.ffi-inline-501/4239dac38f2a721e0dc5b3750d71ce2e6fa4acb6.log /var/folders/66/pm_j0lp94gvcj0qnlcnsx9pw0000gn/T/.ffi-inline-501/4239dac38f2a721e0dc5b3750d71ce2e6fa4acb6.cpp:1:10: fatal error: ‘leptonica/allheaders.h’ file not found #include 我遵循了以下两个问题: https : //github.com/meh/ruby-tesseract-ocr/issues/3和https://github.com/meh/ruby-tesseract-ocr/issues/21 它谈到了我已经完成的设置ENV变量。 我在initalizers文件夹中创建了一个test.rb文件,其中包含以下变量: ENV[‘CFLAGS’] = ‘-I/usr/local/Cellar/tesseract/3.02.02/include’ ENV[‘LDFLAGS’] = ‘-L/usr/local/Cellar/tesseract/3.02.02/lib’ 但是,这对启动应用程序时的错误没有任何影响。 当它说更新标题时我不明白它意味着什么。 我想知道是否有人能告诉我到底要做些什么才能让这个工作。 谢谢。

缺少必需的包裹? – 包括libyaml

我觉得我的计算机有一些深层次的问题,并且100%反对我安装rails / ruby​​ / rvm,其余的就在它上面。 或者我只是无能:) 我已经安装了rvm和ruby而没有问题。 这是我当前的设置(从终端登录): Mac-mini:rubygems-1.8.25 Riley$ rvm -v rvm 1.18.15 (master) by Wayne E. Seguin , Michal Papis [https://rvm.io/] Mac-mini:rubygems-1.8.25 Riley$ ruby -v ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin12.2.1] 但轨道有点不同.. Mac-mini:rubygems-1.8.25 Riley$ rails -v /Users/Jamie/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/yaml.rb:56:in `’: It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, […]

RMagick抱怨在OSX中找不到libMagickCore.5.dylib

在运行brew upgrade imagemagick ,当我运行rails s我会得到 /Users/tomi/.rvm/gems/ruby-2.0.0-p247@ezaaa/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require’: dlopen(/Users/tomi/.rvm/gems/ruby-2.0.0-p247@ezaaa/gems/rmagick-2.13.2/lib/RMagick2.bundle, 9): Library not loaded: /usr/local/lib/libMagickCore.5.dylib (LoadError) Referenced from: /Users/tomi/.rvm/gems/ruby-2.0.0-p247@ezaaa/gems/rmagick-2.13.2/lib/RMagick2.bundle Reason: image not found – /Users/tomi/.rvm/gems/ruby-2.0.0-p247@ezaaa/gems/rmagick-2.13.2/lib/RMagick2.bundle 我正在使用带有RMagick的Carrierwave gem,OS是OSX Moutain Lion

API请求 – OpenSSL :: SSL :: SSLError:SSL_connect SYSCALL返回= 5 errno = 0 state = SSLv3读取服务器hello A

这些问题中的另一个,我知道这个问题已经在StackOverflow上被提出(并回答了很多),但是我无法让任何这些问题适合我,我也有一些问题需要学习。 这是我的错误: OpenSSL::SSL::SSLError: SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read server hello A 首先,这是我的系统设置。 我在OSX El Capitan版本10.11.6上 openssl version OpenSSL 0.9.8zh 14 Jan 2016 which openssl /usr/bin/openssl ruby -v ruby 2.1.6p336 (2015-04-13 revision 50298) [x86_64-darwin14.0] rbenv -v rbenv 0.4.0 我的问题是这些: 1)此错误是否意味着证书已发回给我,然后我的OpenSSL版本无法validation它? 其他服务器是否有机会阅读我的,甚至看到它? 有没有办法使用Net :: HTTP深入研究这个请求,除了打开像Wireshark这样的程序之外还要检查一下? 一旦我调用net :: HTTP.new.request(请求),我似乎失去了控制,它只是错误。 2)我是否成功地与其他服务器通话,它否认了我? 3)当我收到此消息时,我在请求中的哪一点? 最重要的是 4)我有什么选择来克服这一点 4A。 到目前为止,我看到了一个可能的啤酒解决方案,但我还没有能够酿造啤酒 4B。 我可以手动将Mozilla的CA(或任何其他CA)安装到我的Mac […]

BUG Segmentation fault ruby​​ 2.0.0p481(2014-05-08修订版45883)x86_64-darwin13.2.0

尝试运行rails s或rails c时收到错误。 我最近通过自制软件和rbenv安装了ruby和rails。 当我运行rails new project ,应用程序已成功创建。 然后我在相应的目录中进行bundle install ,当我运行rails s或rails c时,一切都顺利更新。 出现以下错误: |14:48:23| ~ rails c /Users/jona/.rvm/gems/ruby-2.0.0-p481/gems/json-1.8.1/lib/json/ext/parser.bundle: [BUG] Segmentation fault ruby 2.0.0p481 (2014-05-08 revision 45883) [x86_64-darwin13.2.0] — Crash Report log information ——————————————– See Crash Report log file under the one of following: * ~/Library/Logs/CrashReporter * /Library/Logs/CrashReporter * ~/Library/Logs/DiagnosticReports * /Library/Logs/DiagnosticReports the more detail […]