Tag: 自制软件

“MySQL客户端库版本不正确”

运行rake assets:precompile时出现以下错误rake assets:precompile Incorrect MySQL client library version! This gem was compiled for 5.6.10 but the client library is 5.5.12. MySQL使用Homebrew安装,版本为5.6.10。 我可以在本地连接到127.0.0.1上的数据库。 我试过以下没有运气: ARCHFLAGS=”-arch x86_64″ gem install mysql2 — –with-mysql-config=/usr/local/bin/mysql_config 似乎建议适用于那些“客户端库”比Gem编译的客户端更新的人。 我的问题恰恰相反。 无法弄清楚5.5.12的来源。 有任何想法吗?

echo $ PATH与.bash_profile不匹配

我正在尝试在Mountain Lion上安装自制软件,以便我可以安装Ruby 1.9.3。 经过多年的PHP编程,我终于跳进了Rails,Git等等。无论如何,我都是在给我的笔记本电脑上。 因此,我的登录帐户不是原始帐户。 我认为这可能会导致我遇到的问题。 在运行brew医生时,我得到以下信息: 警告:在您的路径中找不到Homebrew的sbin。 考虑修改PATH变量,使其包含:/ usr / local / sbin 运行echo $ PATH时,我得到以下内容: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin:/Users/chadimoglou/.rvm/bin 我的主目录中没有.profile。 有一个.bash_profile。 看起来像这样 [[-s“$ HOME / .rvm / scripts / rvm”]] && source“$ HOME / .rvm / scripts / rvm”#将RVM 作为函数加载到shell会话中 任何帮助这个终端noob非常感谢。

Lion OSX:如何安装libfreetype.6.dylib?

我正在尝试安装ruby gem,但安装过程已停止,因为: ld: file not found: /usr/local/lib/libfreetype.6.dylib for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) 我该如何安装这个库? 我检查了/usr/local/lib/ ,那里缺少库。 编辑: 我跑了找到libfreetype.6.dylib并得到: /Applications/MAMP/Library/lib/libfreetype.6.dylib /Applications/VLC.app/Contents/MacOS/lib/libfreetype.6.dylib /Applications/XAMPP/xamppfiles/lib/libfreetype.6.dylib /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/lib/libfreetype.6.dylib /Applications/calibre.app/Contents/Frameworks/libfreetype.6.dylib /Users/xxxxx/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib /Users/xxxxx/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM /Users/xxxxx/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents /Users/xxxxx/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents/Info.plist /Users/xxxxx/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents/Resources /Users/xxxxx/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents/Resources/DWARF /Users/xxxxx/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents/Resources/DWARF/libfreetype.6.dylib /Users/xxxxx/rubydev/sharelock-staging/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib /Users/xxxxx/rubydev/sharelock-staging/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM /Users/xxxxx/rubydev/sharelock-staging/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents /Users/xxxxx/rubydev/sharelock-staging/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents/Info.plist /Users/xxxxx/rubydev/sharelock-staging/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents/Resources /Users/xxxxx/rubydev/sharelock-staging/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents/Resources/DWARF /Users/v/rubydev/sharelock-staging/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents/Resources/DWARF/libfreetype.6.dylib /opt/X11/lib/libfreetype.6.dylib /usr/local/Cellar/freetype/2.4.10/lib/libfreetype.6.dylib 但为什么系统找不到图书馆?

尝试在Mac上为Ruby on Rails安装Homebrew时出错

我试图在我的Mac上安装Homebrew与OS 10.8.5,我收到一个错误。 我在终端输入以下内容: ruby -e “$(curl -fsSkL raw.github.com/mxcl/homebrew/go/install)” 我收到以下错误 /Users/marlonmarescia/.rbenv/shims/ruby: line 21: /usr/local/Cellar/rbenv/0.4.0/libexec/rbenv: No such file or directory

安装Homebrew时出错 – 找不到Brew命令

我花了我周五的大部分时间试图在我的新MacBook Air上安装最新版本的Ruby(安装了Mountain Lion)。 我有所有最新版本的XCode和命令行工具。 但我似乎无法让Homebrew工作! 这是我一直卡住的截图 (我是新用户,因此无法嵌入此图像)。 如您所见,我使用以下方法安装Homebrew: ruby -e “$(curl -fsSkL raw.github.com/mxcl/homebrew/go/install)” 虽然有一个“警告”,但似乎安装工作: Warning: /usr/local/bin is not in your PATH. ==> Installation successful! 尽管如此,当我尝试运行“酿造医生”时,我收到以下信息: -bash: brew: command not found 再一次,我正在尝试安装自制软件,所以我可以安装最新版本的ruby – 我正在学习使用ruby编写代码,但如果我甚至可以运行开发环境,那就搞砸了! 🙂 谢谢你尽你所能的帮助!

尝试使用brew而不是ports在Snow Leopard上安装ruby-filemagic

我正在尝试安装ruby-filemagic。 我试过sudo gem install ruby​​-filemagic -v 0.2.2并得到: ERROR: Error installing ruby-filemagic: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb checking for magic_open() in -lmagic… no *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need […]

使用Homebrew安装Ruby

我用Homebrew安装了Ruby: brew install ruby 根据“警告”,它说: 注意:默认情况下,gem安装的二进制文件将放入: /usr/local/Cellar/ruby/1.9.3-p194/bin 您可能希望将其添加到PATH中。 这是什么意思,我怎样才能将它添加到我的“路径”中? 假设它与bash_profile有关,但对此却是新的。