osx-snow-leopard

Check mySQL version on Mac 10.8.5

十年热恋 提交于 2019-12-03 16:16:29
问题 How can I check (step-by-step ) the version of mySQL installed on my Mac 10.8.5? I tried using command prompt, but couldn't figure out. 回答1: Every time you used the mysql console, the version is shown. $ mysql -u user Successful console login shows the following which includes the mysql server version. Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1432 Server version: 5.5.9-log Source distribution Copyright (c) 2000, 2010, Oracle and/or its affiliates.

Problem trying to install PyCurl on Mac Snow Leopard

送分小仙女□ 提交于 2019-12-03 16:08:33
My app needs to use PyCurl, so I tried to install it on my Mac but I found a lot of problems and errors. Requirement: First of all I have to say that the version of Python working on my Mac is 32 bit based, because I need to use WxPython, that needs 32 bit Python. For doing this I used: defaults write com.apple.versioner.python Prefer-32-Bit -bool yes To install PyCurl I used: sudo env ARCHFLAGS="-arch x86_64" easy_install setuptools pycurl And the terminal returned: Best match: setuptools 0.6c11 Processing setuptools-0.6c11-py2.6.egg setuptools 0.6c11 is already the active version in easy

Display of “Canopy” on command line

China☆狼群 提交于 2019-12-03 15:58:25
I have a basic terminal question. I just installed enthought's Canopy for Python on Snow Leopard, and (Canopy 64bit) continually shows up when I'm working on the command line. EX: (Canopy 64bit) Macbook~[username]$ I've tried editing my bashrc file, to no avail. bashrc currently has this: # System-wide .bashrc file for interactive bash(1) shells. if [ -z "$PS1" ]; then return fi PS1="Macbook~\u\$" # Make bash check its window size after a process completes shopt -s checkwinsize -- Is there any way to stop "(Canopy 64bit)" from displaying? It's in .bash_profile. But you'll probably have to log

How to update Numpy on Mac OS X Snow Leopard?

二次信任 提交于 2019-12-03 15:57:49
问题 How can I update Numpy into the newest one? Should I download .dmg file from here: http://sourceforge.net/projects/numpy/files/ Is this .dmg only for 10.5? I have installed numpy using these instructions: http://www.scipy.org/Installing_SciPy/Mac_OS_X My current Numpy is 1.2.1. I'm running on Mac OS X 10.6.1 Snow Leopard. Thanks! 回答1: sudo easy_install -U numpy Installing via setuptools will get the new numpy on the sys.path for non-system utilties (I've been told that some Apple utilities

How to assign application to all desktops (spaces) of Mac OS X Lion using Objective C?

我只是一个虾纸丫 提交于 2019-12-03 15:50:12
问题 I am trying to create an Application on Mac OS X Lion which requires application to be assigned to All Desktops (Spaces). This can be manually done by Right clicking on application's dock icon and Selecting Options > Assign To > All Desktops . But, I need to find a way to do this via Objective C. Is there a way to achieve this programmatically? 回答1: You can use method setCollectionBehavior: of NSWindow with the NSWindowCollectionBehaviorCanJoinAllSpaces bitwise flag. It will make the window

NI VISA + pyVisa on Mac OS X (Snow Leopard)

风格不统一 提交于 2019-12-03 15:38:15
Has anyone had success running pyVisa on Snow Leopard with a NI GPIB module? Based on all of the forums I have read on NI's website, it does not appear that the combination of NI VISA and pyVisa can be done on Max OS X. The troubling part is that NI website has the NI VISA support listed for Mac OS X . However in their support pages, they do not list OS X as a supported OS. Any comments or help would be greatly appreciated as I would really like to get away from having to use Windows to do this software development as well as allow cross platform support. It turns out that NI-VISA 5.0 works

Qt 5 cannot deploy on SnowLeopard

北城以北 提交于 2019-12-03 15:23:11
I have an issue where my app doesn't run on 10.6 Snow Leopard. I compile with these parameters: qmake LSPRO.pro -r -spec macx-clang CONFIG+=release CONFIG+=x86_64 in my Pro file, I have these elements: TEMPLATE = app HEADERS = \ mainwindow.h \ app_mediamanager.h \ api.h \ tool_htmleditor.h \ tool_videoencoder.h \ tool_thumbnaileditor.h SOURCES = \ main.cpp \ mainwindow.cpp \ app_mediamanager.cpp \ api.cpp \ tool_htmleditor.cpp \ tool_videoencoder.cpp \ tool_thumbnaileditor.cpp QT += network webkitwidgets widgets concurrent sql QMAKE_CXXFLAGS_X86_64 += -mmacosx-version-min=10.6 QMAKE_MACOSX

Can't install passenger 3 on Snow Leopard (with RVM and ruby 1.9.2)

送分小仙女□ 提交于 2019-12-03 13:43:17
I've been trying to install passenger with no success yet. I've installed the gem, but when I run passenger-install-apache2-module it tells me This installer must be able to write to the following directory: /Users/myname/.rvm/gems/ruby-1.9.2-p0/gems/passenger-3.0.0 But it can't do that, because you're running the installer as myname. Please re-run this installer as root. but if I do sudo passenger-install-apache2-module I get /Users/myname/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:762:in `report_activate_error': Could not find RubyGem passenger (>= 0) (Gem::LoadError) from /Users

How do I keep track of file locations on Mac OS X?

故事扮演 提交于 2019-12-03 13:31:28
One of the nice features of BBEdit is how it keeps track of files no matter what happens to those files. The application that I am working on needs to keep track of the location of a number of files owned by the user. The user can move or delete these files and my application needs to know where those files are even if my application was not running at the time the change in location happened. What is a recommended strategy for this problem or what could it be? Keeping track of files while the application is running is not the problem. I want the correct path to the files when my application

Imagemagick jpeg decode delegate missing with OS X Homebrew install

≯℡__Kan透↙ 提交于 2019-12-03 11:45:12
问题 I recently converted from macports to homebrew and my previous macports Imagemagick install was working fine. I followed the homebrew instructions to chown /usr/local (somewhat apprehensively) and remove /usr/local/include and /usr/local/lib. When trying to work with any jpeg images, imagemagick chokes with: no decode delegate for this image format Here is a list of some relevant command output. As you can see, no jpeg/jpg delegate can be found. convert -list configure => DELEGATES bzlib