homebrew

Build OpenCV JDK 6 32 bit for Mac

匆匆过客 提交于 2020-01-06 02:19:08
问题 This problem has set me back 2 straight days and I am getting very desperate at this point. As the question description states I need the OpenCV 2.4.11 java library 32 bit version that will run with JDK 1.6 on a Mac running Yosemite. I require this because another library that I am using requires 32 bit (and this is only available with JDK 1.6). Hence I am using JDK 1.6 and passing the VM argument -d32 . I have had two main attempts: For both attempts I first set my default JDK to 6: $nano

gcc 4.6 on mac, how do I get it to work?

放肆的年华 提交于 2020-01-05 11:07:10
问题 I am having problems getting gcc 4.6 to run on Mac 10.8.5. My experience with such matters is very limited and I have been searching around and trying different things to get this to work, but to no avail. I am sorry if the answer to this problem is really simple (I actually hope that it is!) This is my problem: I need to run a bit of software to do an analysis, called Bayescan. This bit of software requires a library found as part of gcc4.6 to run on a MacOSX. They say so on their

Cocoapods claims to install but does not work

与世无争的帅哥 提交于 2020-01-05 09:10:01
问题 I ran the install of cocoapods by using sudo gem install cocoapods . The command claims to have completed successfully. However when I do gem list cocoapods it doesn’t show in list. And when I do pod --version I get an error: /Users/myname/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems.rb:271:in `find_spec_for_exe': can't find gem cocoapods (>= 0.a) (Gem::GemNotFoundException) from /Users/myname/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems.rb:299:in `activate_bin_path'

the command `brew install watchman` runs `chmod` but fails to install eventually

百般思念 提交于 2020-01-05 03:27:28
问题 brew install --HEAD watchman ==> Cloning https://github.com/facebook/watchman.git Updating /Library/Caches/Homebrew/watchman--git ==> Checking out branch master ==> ./autogen.sh ==> ./configure --prefix=/usr/local/Cellar/watchman/HEAD --with-pcre ==> make ==> make install install: chmod 777 /: Operation not permitted touch //.not-empty touch: //.not-empty: Permission denied make[1]: *** [install-exec-local] Error 1 make: *** [install-am] Error 2 couldn't understand kern.osversion `14.5.0'

install libRmath on Mac OS X with Homebrew

≯℡__Kan透↙ 提交于 2020-01-04 13:58:19
问题 I would like to install libRmath.dylib on Mac OS X (Mavericks) preferably with Homebrew since I already use this package manager. I did not find a formula for libRmath , but I did find a formula for R so I tried to extend it with (see entire file at end): # Also build libRmath.dylib system "cd src/nmath/standalone" system "make" system "make install" system "cd ../../.." lib.mkpath ln_s prefix+"R.framework/Resources/lib/", lib The commands ./configure; cd src/nmath/standalone; make do create

PHP extensions loading in apache module, but not in CLI

不想你离开。 提交于 2020-01-04 06:26:11
问题 I've just performed a fresh install of php 5.5(.19) on Mac OSX 10.10.1 through Brew and symlinked libphp5.so from the Brew install to /usr/libexec/apache2/libphp5.so . Firing up a script through Apache with phpinfo() tells me that the loaded php.ini file is located at /usr/local/etc/php/5.5/php.ini . I've added this to the bottom of the php.ini : extension=memcache.so extension=memcached.so extension=imagick.so extension=mongo.so extension=mcrypt.so I should mention that these modules are

Trying to install python3 but terminal keeps showing as python 2.7.13 [duplicate]

拈花ヽ惹草 提交于 2020-01-04 05:45:10
问题 This question already has answers here : How to run programs in python2 and python3 (6 answers) Closed 2 years ago . I have 2.7.13 on macOS Sierra and I'm trying to upgrade to python3 via brew install python3 everything seems to have went fine except the last part: ==> Installing python3 ==> Downloading https://homebrew.bintray.com/bottles/python3-3.6.1.sierra.bottle ######################################################################## 100.0% ==> Pouring python3-3.6.1.sierra.bottle.tar.gz

mongodb on OSX : how to update brew service to start with auth?

╄→гoц情女王★ 提交于 2020-01-04 05:44:27
问题 I installed mongodb with homebrew. I added an admin , and I updated the /usr/local/etc/mongod.conf to enable the security authorisation. I can start mongod with auth: mongod --auth --port 27017 --dbpath /usr/local/var/mongodb But starting service : brew services start mongodb does not start with auth ... how can I do it ? thanks !! 来源: https://stackoverflow.com/questions/41664476/mongodb-on-osx-how-to-update-brew-service-to-start-with-auth

Where is mongoimport installed on Mac OS X

独自空忆成欢 提交于 2020-01-04 05:30:48
问题 I'm trying to setup a cronjob for a regularly scheduled import of json data into a mongo database. To conduct the import, I have the following command in the Python script that the cronjob runs: os.system("mongoimport --jsonArray --db %s --collection %s --file .../data.txt" %(db_name,collection_name)) However, the log file of the cronjob keeps displaying the following error: sh: mongoimport: command not found I think I need to call mongoimport with the full file path in the code, but I'm not

Every time I upgrade Xcode, I get linker errors with brew installed GCC

*爱你&永不变心* 提交于 2020-01-03 16:06:33
问题 So, I upgraded to Mavericks as well as the newest version of Xcode (5.02), and — as expected, was unable to compile any new Ruby gems which include C extensions. This happens specifically with my own project, NMatrix, which includes C and C++ code. I reinstalled the command line tools for Xcode. Then I upgraded homebrew. Then I uninstalled rbenv, ruby-build, and my custom GCC versions (except for 4.7, which was installed manually rather than through brew). Next, I used brew to install gcc48