osx-lion

Can't get going with MySQL in CakePHP

旧街凉风 提交于 2020-05-13 06:33:20
问题 This is my first time installing a framework, and I am pretty clueless. I am on OSX 10.7 and I have the cakephp framework loaded into /Library/WebServer/Documents/cakephp and I have been able to load the test page and get rid of some of the errors and warnings. Right now I am trying to resolve this Warning (2): PDO::__construct() [pdo.--construct]: [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) [CORE/Cake/Model/Datasource/Database/Mysql.php, line 160]

Tar command in mac os x adding “hidden” files, why? [closed]

て烟熏妆下的殇ゞ 提交于 2020-05-09 17:58:44
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . I am writing my own tar archiver. All works fine inside my app (even reading tars generated with other tools) however I cannot get my tar files to work with 3rd party tar file readers. So I tried building a tar file on the command line, building one with my code and binary comparing the two. But there seems to

How do I safely rename my mac hardrive “Macintosh HD”? [closed]

十年热恋 提交于 2020-02-08 02:42:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I installed an SSD in my main hard drive bay and moved my platter HD to the optical bay. I now run my applications off the SSD and my home folder of the platter drive. I'm trying to install RVM and I think the space in the "Macintosh HD" is causing a problem. Any tips/fixes? 回答1: You can edit the name through

what base SDK level should I use?

旧巷老猫 提交于 2020-02-05 08:21:47
问题 I have apps listed on app store. Some of them are OS 10.6 compatiable. Now, I want the user of OS 10.8 getting benifit from the new API of NSUserNotification and still want to serve the user under OS 10.6 and OS 10.7 with basic functions. What base SDK should I use on project setting while producing my new upgrades? Or, should I use different targets? Thank you for your basic tutorials. I really don't know and never used it before. 回答1: Base SDK: 10.8 Mac OS X Deployment Target: 10.6 Build

what base SDK level should I use?

青春壹個敷衍的年華 提交于 2020-02-05 08:21:26
问题 I have apps listed on app store. Some of them are OS 10.6 compatiable. Now, I want the user of OS 10.8 getting benifit from the new API of NSUserNotification and still want to serve the user under OS 10.6 and OS 10.7 with basic functions. What base SDK should I use on project setting while producing my new upgrades? Or, should I use different targets? Thank you for your basic tutorials. I really don't know and never used it before. 回答1: Base SDK: 10.8 Mac OS X Deployment Target: 10.6 Build

Qt5 installation problems

谁说我不能喝 提交于 2020-01-24 21:00:08
问题 I am trying to install Qt5 on OS-X 10.7.5, using the prebuilt binary version. Everything seems to be OK, QtCreator is installed and it works. However when I create a new project, I get the error: "No valid kit found". The Qt version detected seems to be the old Qt4 one only. The file I used for the installation is the one that contains everything: Qt5, QtCreator, ... (398 MB), but when installed only the directory with QtCreator seems to be available. Should I uninstall Qt4 first? Is it a

OS X: portable Git (aka install multiple Git versions)

Deadly 提交于 2020-01-24 17:56:44
问题 I'm currently trying to install multiple Git versions on OS X for testing purposes. After downloading the OS X installer bundle from git-scm.com (which installs to /usr/local/git ), I move it to a different location, e.g. ~/git-1.7.11.1 or ~/git-1.8.1 . Unfortunately, Git does not like this move: $ ~/git-1.7.11.1/bin/git fetch fatal: Unable to find remote helper for 'https' or even worse: $ ~/git-1.7.11.1/bin/git pull git: 'pull' is not a git command. See 'git --help'. Did you mean this?

Error installing 1.9.3 with RVM on Lion

…衆ロ難τιáo~ 提交于 2020-01-24 04:16:28
问题 I have burned an embarrassing number of hours trying to install ruby and rails on Mac. I am using Lion 10.7.2, Xcode 4.2.1, rvm 1.10.0, and gcc 4.2.1 Does anyone have a surefire way to install ruby with rvm. Or, is there rvm install 1.9.2 -C --with-readline-dir=$rvm_path/usr --with-iconv-dir=$rvm_path/usr Produces the error make[1]: *** [../../.ext/x86_64-darwin11.2.0/tcltklib.bundle] Error 1 make: *** [mkmain.sh] Error 1 Running rvm install 1.9.3-p0 --with-gcc=clang Produces the error make:

How to start Postgres server? [closed]

我是研究僧i 提交于 2020-01-22 04:47:24
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Ive actually had this problem for a while but I've finally decided to take it on. Postgres was initially installed using Brew. After my upgrade to OSX 10.8.2 to receive a psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "

Problem installing Ruby 1.9.2 on Mac OS Lion

元气小坏坏 提交于 2020-01-21 07:05:05
问题 I am running Lion, utilizing Xcode 4, have RVM and homebrew installed but am only able to run ruby 1.8.7 spurvis:~ rogue$ ruby -v ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0] spurvis:~ rogue$ I've read through several threads related to this topic but nothing seems to work for my problem: spurvis:~ rogue$ rvm install 1.9.2 Installing Ruby from source to: /Users/rogue/.rvm/rubies/ruby-1.9.2-p290, this may take a while depending on your cpu(s)... ruby-1.9.2-p290 - #fetching