homebrew

cannot import gi module python 3.6 on mac

偶尔善良 提交于 2019-12-20 03:23:28
问题 I am integrating gstreamer and pocketsphinx on mac using python 3.6; however, the first line of code, from gi import pygtkcompat , raises an error. The command: python3 demoapp_chinese.py returns Traceback (most recent call last): File "demoapp_chinese.py", line 1, in from gi import pygtkcompat ModuleNotFoundError: No module named 'gi' Here's how I install pygobject: brew install pygobject3 And when I try to get more info. I execute brew info pygobject3 which returns pygobject3: stable 3.30.4

How to set CLion custom CMake executable to a version installed with Homebrew?

陌路散爱 提交于 2019-12-20 03:05:15
问题 I'm trying to make CLion use the same version of CMake that I'm using from the command line. In Preferences > Build, Execution, Deployment > Toolchains, I tried setting a custom CMake executable path to /usr/local/Cellar/cmake/3.7.0/bin, but CMake displays a "not found" error on the same page. For now, I had brew install the same version of CMake that CLion is using: brew switch cmake 3.6.2 But is there a way to make CLion use the version of cmake installed with brew? 回答1: Yes, you can set

PHP intl.so fails

五迷三道 提交于 2019-12-20 02:55:22
问题 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20121212/intl.so' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20121212/intl.so, 9): Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.56.dylib Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20121212/intl.so Reason: image not found in Unknown on line 0 I recently was trying to install MongoDB for PHP, I used brew install homebrew/php/php55-mongodb This installed a whole

How to enable php-gmp on Mac OS X 10.6.6? (no macports)

感情迁移 提交于 2019-12-19 21:21:04
问题 I want to enable my php-gmp and I don't want to use macports because I use homebrew. First I brew install gmp and I got gmp 5.0.1 Then I downloaded the PHP source 5.3.6, then I go to source/ext/gmp I did phpize and then MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS='-O3 -fno-common -arch i386 -arch x86_64' LDFLAGS='-O3 -arch i386 -arch x86_64' CXXFLAGS='-O3 -fno-common -arch i386 -arch x86_64' ./configure --with-php-config=/Developer/SDKs/MacOSX10.6.sdk/usr/bin/php-config; make -j6;sudo make install

How to enable php-gmp on Mac OS X 10.6.6? (no macports)

别等时光非礼了梦想. 提交于 2019-12-19 21:17:10
问题 I want to enable my php-gmp and I don't want to use macports because I use homebrew. First I brew install gmp and I got gmp 5.0.1 Then I downloaded the PHP source 5.3.6, then I go to source/ext/gmp I did phpize and then MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS='-O3 -fno-common -arch i386 -arch x86_64' LDFLAGS='-O3 -arch i386 -arch x86_64' CXXFLAGS='-O3 -fno-common -arch i386 -arch x86_64' ./configure --with-php-config=/Developer/SDKs/MacOSX10.6.sdk/usr/bin/php-config; make -j6;sudo make install

Installing node with homebrew problems mac OS

痞子三分冷 提交于 2019-12-19 11:44:12
问题 after installing homebrew, after running brew install node I test with: node --version I get: command not found If I rerun the install command: I get: MacBook-Pro:~ evanloiterman$ brew install node Warning: node 10.9.0 is already installed, it's just not linked You can use brew link node to link this version. MacBook-Pro:~ evanloiterman$ brew link node Linking /usr/local/Cellar/node/10.9.0... Error: Could not symlink include/node/common.gypi Target /usr/local/include/node/common.gypi already

Install PHP with Postgresql on MAC using homebrew

徘徊边缘 提交于 2019-12-19 10:29:30
问题 I am trying to install PHP 5.6 with Postgresql using homebrew using this tutorial. However, as I do not want to use mysql and apache, when installing php 5.6 I use this command : brew install php56 --without-mysql --without-apache --with-pgsql=/Applications/Postgres.app/Contents/Versions/9.4/bin/ However, I does not install postgres support. The first line I see is all the time : ==> Installing php56 with --without-mysql, --without-apache But nothing regarding --with-pgsql. When I try not to

imagemagick: brackets in file names 'No such file or directory' — Mac OS X

旧街凉风 提交于 2019-12-19 10:20:21
问题 I've upgraded my Homebrew ImageMagick to 6.9.4-7 version (Mac OS 10.11.5), after which it doesn't understand brackets in file names anymore. This command should consider the first frame of a picture: identify -format '%wx%h,1' 'some_pic.jpg[0]' For JPG it is actually just the picture, so the command is equivalent to: identify -format '%wx%h,1' 'some_pic.jpg' The bracket command works fine on my Ubuntu server and worked before on my Mac. But now it fails with identify: unable to open image

ImportError: : Symbol not found: __PyErr_ReplaceException

爷,独闯天下 提交于 2019-12-19 08:28:22
问题 I use homebrew install python 2.7.10 and usr/local/bin/python is linked to the python 2.7.10. But when I run my python code, an exception occurs as below. But when I use IPython import numpy it goes well. When I use command which python it tells me that is /usr/local/bin/python while use whereis python it tells me that is /usr/bin/python . Traceback (most recent call last): File "main.py", line 9, in <module> import numpy File "/usr/local/lib/python2.7/site-packages/numpy/__init__.py", line

How to build boost with mpi support on homebrew?

和自甴很熟 提交于 2019-12-19 07:37:09
问题 According to this post (https://github.com/mxcl/homebrew/pull/2953), the flag " --with-mpi " should enable boost_mpi build support for the related homebrew formula, so I am trying to install boost via homebrew like this: brew install boost --with-mpi However, the actual boost mpi library is not being build and can not be found. There is currently some work being done around this, according to: https://github.com/mxcl/homebrew/pull/15689 In summary, I can currently build boost, but it seems