homebrew

Homebrew install package with a particular version

ε祈祈猫儿з 提交于 2019-12-05 10:45:28
Unfortunately on my MAC I am unable to get the gem "rmagick" to install. I've tried pretty much a all the options. I had gotten it to install when I used "imagemagick 6.3.9.7". Therefore, I want to know is there a way to install a particular version of the software using brew ? Something like brew install imagemagick -v 6.3.9.7 Search for available versions with: brew search imagemagick To install a specific version use this forumla: brew install package@<version> , in your case it's: brew install imagemagick@6.3.9.7 来源: https://stackoverflow.com/questions/41800136/homebrew-install-package

Brew linking with ImageMagick

寵の児 提交于 2019-12-05 10:38:58
Installing: 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

Library not loaded: /opt/local/lib/libffi.5.dylib but I'm using homebrew

喜你入骨 提交于 2019-12-05 10:33:25
I'm trying to run guard on Mac OS X Lion(XCode 4.3+OSX GCC Installer+Homebrew) Error message: Library not loaded: /opt/local/lib/libffi.5.dylib I have no /opt/local directory since I'm not using MacPorts but Homebrew I tried brew install libffi , which was successful, but the gem still doesn't work. I also have tried uninstalling and reinstalling the gem without success. Problem is also occurring on OSX 10.9 (Mavericks) with apple-gcc42 installed. I have also tried telling gem about the presence of libffi as follows: gem install ffi:1.0.7 -- --with-ldflags='-L/usr/local/opt/libffi/lib' I have

Linker error - Undefined symbols std::string::c_str() const on macos with libboost_thread?

微笑、不失礼 提交于 2019-12-05 09:28:56
I installed boost 1.55.0 from homebrew on macos mavericks. Getting a linker exception - not finding std::string::c_str() which I don't understand why. Could this be a problem with homebrew? I tried compiling boost 1.55.0 directly from boost and it doesn't even build on macos. This little bit of code: #include <iostream> #include <unordered_map> #include <vector> #include <boost/thread/tss.hpp> typedef std::unordered_map<std::string, std::string> StringMap; static boost::thread_specific_ptr<std::vector<StringMap*>> rlist; int main() { return 0; } compiled with this command line: g++ -std=c++11

No php.ini with brew

时间秒杀一切 提交于 2019-12-05 09:17:30
I installed PHP7 with brew and it said: The php.ini file can be found in: /usr/local/etc/php/7.0/php.ini but I don't see anything there. So I confirmed it with php-fpm -i : Configuration File (php.ini) Path => /usr/local/etc/php/7.0 Loaded Configuration File => (none) Scan this dir for additional .ini files => /usr/local/etc/php/7.0/conf.d I think for this reason I'm unable to run PHP scripts, how do I fix it? johannesdr I have the same issue. Someone has already created an issue for this: https://github.com/Homebrew/homebrew-php/issues/3599 https://github.com/Homebrew/homebrew-php/issues/3598

mac brew安装redis

穿精又带淫゛_ 提交于 2019-12-05 08:52:08
使用Homebrew安装redis可以减少大量的安装和配置的工作量。 安装命令 brew install redis 安装完成后的提示信息 To have launchd start redis at login: ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents Then to load redis now: launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist Or, if you don’t want/need launchctl, you can just run: redis-server /usr/local/etc/redis.conf 开机启动redis命令 $ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents 使用launchctl启动redis server $ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist 使用配置文件启动redis server $ redis-server /usr/local/etc/redis.conf 停止redis server的自启动 $

How to fix `brew doctor` errors on Mac OSX 10.9 (unlinked kegs in Cellar and Homebrew sbin not found)?

血红的双手。 提交于 2019-12-05 08:31:42
I'm having some trouble with brew which I'm trying to solve. When I currently run brew doctor I get the following output: Warning: You have unlinked kegs in your Cellar Leaving kegs unlinked can lead to build-trouble and cause brews that depend on those kegs to fail to run properly once built. Run `brew link` on these: autoconf libevent Warning: Homebrew's sbin was not found in your PATH but you have installed formulae that put executables in /usr/local/sbin. Consider setting the PATH for example like so echo export PATH="/usr/local/sbin:$PATH" >> ~/.bash_profile So I went ahead and tried all

Trying to install Python3 using brew

我的梦境 提交于 2019-12-05 08:03:48
Trying to install Python3 in mac using below command : brew install python3 When i run the command getting below error : Error: python 2.7.14_2 is already installed To upgrade to 3.6.5, run `brew upgrade python` How to keep both python2 and python3 in mac without upgrading... Thanks! The python formula is assumed by Homebrew to be Python 3. The formula python3 is thus an alias for python . You need to: brew upgrade python , as told by the error message. It will switch your default Homebrew Python from 2 to 3. brew install python@2 . It will install Python 2 alongside Python 3. Note however

Installing older version of imagemagick with homebrew

天大地大妈咪最大 提交于 2019-12-05 07:30:02
I need to install an older version of imagemagick (6.5.9-3), I can see it in the list of available versions > brew versions 6.6.1-5 git checkout 1c9f04e Library/Formula/imagemagick.rb 6.5.9-8 git checkout 685dbff Library/Formula/imagemagick.rb 6.5.9-3 git checkout 258720c Library/Formula/imagemagick.rb 6.5.6-5 git checkout 7c90d02 Library/Formula/imagemagick.rb 6.5.5-10 git checkout b01c13d Library/Formula/imagemagick.rb but when I checkout that version with > git checkout 258720c Library/Formula/imagemagick.rb and then run > brew install imagemagick I get an error saying that Error:

How to remove the shallow clone warning from HomeBrew

自作多情 提交于 2019-12-05 07:17:49
➜ ~ brew info test Error: No available formula with the name "test" ==> Searching for a previously deleted formula... Warning: homebrew/core is shallow clone. To get complete history run: git -C "$(brew --repo homebrew/core)" fetch --unshallow Error: No previously deleted formula found. I have modified the git remote address to mirror address of homebrew before. Maybe it's relevant to this but I don't know. Just as what it says To get complete history run: git -C "$(brew --repo homebrew/core)" fetch --unshallow This way brew info could search for formula that existed only in the past but