osx-lion

python tab completion Mac OSX 10.7 (Lion)

坚强是说给别人听的谎言 提交于 2019-11-26 11:56:50
问题 Before upgrading to lion, I had tab complete working in a python shell via terminal. Following these instructions, it was possible to have tab complete working. Since upgrading to Lion, I am now unable to get tab complete working in a terminal session of Python. I\'ve followed the above instructions to the letter, and it still does not work. Is there a difference with the readline module in Lion? Hooking in to the \'tab:complete\' option no longer seems to work. I\'m wondering if it is

Where can I find “make” program for Mac OS X Lion?

风流意气都作罢 提交于 2019-11-26 11:48:21
问题 Just upgraded my computer to Mac OS X Lion and went to terminal and typed \"make\" but it says: -bash: make: command not found Where did the \"make\" command go? 回答1: Have you installed Xcode and the developer tools? I think make, along with gcc and friends, is installed with that and not before. Xcode 4.1 for Lion is free. 回答2: You need to install Xcode from App Store. Then start Xcode, go to Xcode->Preferences->Downloads and install component named "Command Line Tools". After that all the

Why is Apple Deprecating OpenSSL in MacOS 10.7 (Lion)? [closed]

一曲冷凌霜 提交于 2019-11-26 09:41:13
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year . Apple has marked most (but not all) of the OpenSSL API as \"deprecated\" in MacOS 10.7. Has Apple made any statements explaining why they are moving from OpenSSL to Common Crypto? 回答1: Apple is migrating from OpenSSL to Common Crypto (which Apple develops). Some docs: http:/

configure: error: C compiler cannot create executables

梦想与她 提交于 2019-11-26 07:56:30
问题 I\'ve checked a number of similar questions on stackoverflow but haven\'t found an answer yet. I\'m trying to install memcached on Lion OSX as shown here. Here\'s what I\'m getting: j-court-demones-macbook-pro:libevent-1.4.12-stable jcourtdemone$ ./configure; make checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... ./install-sh -c -d checking for gawk... no checking for mawk... no checking for

Disable elastic scrolling in Safari [duplicate]

我是研究僧i 提交于 2019-11-26 07:55:10
问题 This question already has answers here : ipad safari: disable scrolling, and bounce effect? (16 answers) Closed 3 years ago . I just wanted to diable the elastic scrolling/bounce effect in Safari (OSX Lion). I found the solution to set overflow: hidden for body in css, but as expected it only disables the scrollbar , so if the website is \"longer\" than the screen you won\'t be able to scroll! Any solutions or hints are welcome! Thanks! 回答1: You can achieve this more universally by applying

gcc-4.2 failed with exit status 1

孤街醉人 提交于 2019-11-26 07:35:34
问题 I\'ve been looking for an answer to this issue but I couldn\'t find it, so here it is. I\'m trying to install Uniconvertor with a setup.py file into a MacOS X Lion (Python 2.7.2) using: python setup.py install Then I get the following error code: running install running build running build_py running build_ext building \'uniconvertor.app.modules.streamfilter\' extension gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -g -O2 -DNDEBUG -g -O3 -arch i386

What is the “Illegal Instruction: 4” error and why does “-mmacosx-version-min=10.x” fix it?

大城市里の小女人 提交于 2019-11-26 03:39:19
问题 I get Illegal Instruction: 4 errors with binaries compiled with GCC 4.7.2 under Mac OS X 10.8.2 (\"Mountain Lion\"), when those binaries are run under Mac OS X 10.7.x (\"Lion\") and earlier versions. The binaries work properly under Mac OS X 10.8.x. I added -mmacosx-version-min=10.5 to my compile flags and this seems to help resolve the issue for 10.5.x, 10.6.x and 10.7.x clients, whatever that issue is. Which gets to my question(s): What is the Illegal Instruction: 4 error? Why does -mmacosx

Repairing Postgresql after upgrading to OSX 10.7 Lion

大城市里の小女人 提交于 2019-11-26 01:40:56
问题 I recently upgraded to OSX 10.7, at which point my rails installation completely borked when trying to connect to the psql server. When I do it from the command line using psql -U postgres it works totally fine, but when I try to run the rails server or console with the same username and password, I get this error ...activerecord-3.0.9/lib/active_record/connection_adapters/postgresql_adapter.rb:950:in `initialize\': could not connect to server: Permission denied (PGError) Is the server

Set environment variables on Mac OS X Lion

穿精又带淫゛_ 提交于 2019-11-26 01:25:17
问题 When someone says \"edit your .plist file\" or \"your .profile\" or \".bash_profile\" etc, this just confuses me. I have no idea where these files are, how to create them if I have to do that, etc, and also why there seem to be so many different ones (why? Do they do different things?) So could someone please explain very patiently to a previous Windows user (wanting desperately to become more familiar with the pleasant if initially somewhat confusing OS X world) how to do this step by step?

Can't install Ruby under Lion with RVM – GCC issues

允我心安 提交于 2019-11-26 00:24:37
问题 Most questions regarding this problem are due to missing Xcode; I have Xcode 4.2 installed. Install attempt: rvm install 1.9.3 Installing Ruby from source to: /Users/jamie/.rvm/rubies/ruby-1.9.3-p0, this may take a while depending on your cpu(s)... ruby-1.9.3-p0 - #fetching ruby-1.9.3-p0 - #extracted to /Users/jamie/.rvm/src/ruby-1.9.3-p0 (already extracted) Fetching yaml-0.1.4.tar.gz to /Users/jamie/.rvm/archives Extracting yaml-0.1.4.tar.gz to /Users/jamie/.rvm/src Configuring yaml in