osx-mountain-lion

How can I correct my Python/pip configuration on OS X 10.8?

只愿长相守 提交于 2019-12-06 12:25:00
I've got a MacBook Pro running OS X 10.8, Xcode 4.4 installed. I recently installed lxml, but when I went to import it I got the following: MacBook-Pro:~ jedc$ sudo pip install lxml==2.3.5 Password: Downloading/unpacking lxml==2.3.5 Downloading lxml-2.3.5.tar.gz (3.2Mb): 3.2Mb downloaded Running setup.py egg_info for package lxml Building lxml version 2.3.5. Building without Cython. Using build configuration of libxslt 1.1.26 warning: no previously-included files found matching '*.py' Installing collected packages: lxml Running setup.py install for lxml Building lxml version 2.3.5. Building

Mountain Lion change php location

落爺英雄遲暮 提交于 2019-12-06 11:25:36
After upgrading to Mountain Lion I used this one line bash script to install php 5.4 http://php-osx.liip.ch/ It installs 5.4 to /usr/local/php5 If i run which php I get /usr/bin/php And running php -v returns 5.3.13 How do tell Mountain Lion to use the php in /usr/local/php5 Will I also have to change Apache htttpd.conf to use the new version of php? Thanks This is the hard way, you just link to the new php file: $ sudo mv /usr/bin/php /usr/bin/php53 && sudo ln -s /usr/local/php5/bin/php /usr/bin/php Change the php5 bin path according to the real php5 binary path since I have no idea where the

LaunchD Plist not working

99封情书 提交于 2019-12-06 09:30:52
EDIT: It appears as if I am getting an error in the console com.apple.launchd: (com.xxxx.adbind[57]) Exited with code: 1 What does that even mean? Also; if I load the launchd plist file logged in by using the launchctl command it works fine! I'm driving myself crazy trying to figure out why my launchd is not working. I'm using this in Mountain Lion 10.8.2 When I manually start it using launchctl it says it's loaded, but the script is not running. The script when ran manually works fine as well. Perhaps it just needs a better set of eye's to look at what I'm doing. First, I'll explain what it

NSOpenPanel crashes when debugging with Xcode 4.5.1

情到浓时终转凉″ 提交于 2019-12-06 09:23:03
I have a document-based application. Since upgrading to XCode 4.5.1 (from 4.4) NSOpenPanel crashes when I debug the application from Xcode. It does not crash when I start the program directly. I use NSOpenPanel on two occasions: When the user selects "Open" from the "File" menu (since it is a document-based application, none of my own code is involved) and for importing some data into my document (so it gets called by my own code). NSOpenPanel crashes on both occasions (the dialog opens, but before I can do anything, an exception is raised). I made clean, tried switching compiler from Apple

Using boost from XCODE 4.6.1 - what are the proper build settings?

徘徊边缘 提交于 2019-12-06 05:27:28
问题 I downloaded boost 1.53 and extracted to Users/user/Desktop/boost_1_53_0 I successfully built boost as static libraries following instructions at: http://libcinder.org/docs/v0.8.5/_cinder_boost.html I changed XCODE's "Build Settings" "Header Search Paths" to /Users/user/Desktop/boost_1_53_0 as well as the "Library Search Paths" to Users/user/Desktop/boost_1_53_0/stage/lib Then I build and get errors: The first error I'm getting is "has_binary_operator.hpp" Parse issue Expected member name or

Matlab on Mountain Lion not working -

风流意气都作罢 提交于 2019-12-06 04:20:00
问题 Matlab (R2010a) seems to be kaput on Mountain Lion - if I click on the icon it crashes immediately. I installed XQuartz and Java on Mountain Lion but still keep getting the following error when trying to open it from xterm: bash-3.2$ /Applications/MATLAB_R2010a.app/bin/matlab dyld: Library not loaded: /usr/X11/lib/libXext.6.dylib Referenced from: /Applications/MATLAB_R2010a.app/bin/maci64/MATLAB.app/Contents/MacOS/libmwhg.dylib Reason: image not found Trace/BPT trap: 5 Unfortunately the error

rxtxSerial.dll for MacOS 10.8

只愿长相守 提交于 2019-12-06 02:57:42
问题 I'm currently working on a ZigBee project and I'm programming on an Mac with Mountain Lion (10.8) and using Eclipse IDE. To use my Zigbee Module via USB for Serial communication, I need this rxtxSerial.dll. I only have a Windows compatible version right now. Is somebody able to provide the necessary link to me? Thank you! 回答1: Edit2 With all the latest updates as of 2012-11-15 (OSX 10.8.2) i needed to install glibtool via homebrew (http://mxcl.github.com/homebrew/) before I got the procedure

Error when ex mkvirtualenv in Mountain Lion

大兔子大兔子 提交于 2019-12-06 02:30:30
I have Mountain Lion and I installed virtualenv using this method: sudo easy_install pip sudo pip install virtualenv virtualenvwrapper echo "export WORKON_HOME=$HOME/Envs" >> $BASH_CONFIG_FILE echo "source /usr/local/bin/virtualenvwrapper.sh" >> $BASH_CONFIG_FILE source ~/.bashrc There is a problem when I try to create the virtualenv with this command: mkvirtualenv test I receive this error: New python executable in test/bin/python Installing setuptools........... Complete output from command /Users/marco/Envs/test/bin/python -c "#!python \"\"\"Bootstra...sys.argv[1:]) " /Library/Python/2.7/..

How do I build mod_jk on Mac OS X Mountain Lion?

大憨熊 提交于 2019-12-06 01:54:26
问题 I followed the instructions in BUILDING.txt in the native directory and executed ./configure --with-apxs=/usr/sbin/apxs Here is some of the output building connector for "apache-2.0" checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. Naturally, I searched StackOverflow for solutions since gcc was not

Increase rlimit Mac OSX 10.8

末鹿安然 提交于 2019-12-06 00:26:42
问题 I'm learning MongoDB and when I start the mongo shell a wild warning message appeared. It says: How do i change the "soft rlimits". I'm using Mac OSX 10.8.2 Tnx in advance 回答1: What you are searching for is launchctl limit maxfiles . To change it you need to run command launchctl limit maxfiles 1024 2048 for example. To permanently change those values you need to create /etc/launchctl.conf and set there values you need (see here for details) or add command mentioned above to your ~/.bash