osx-lion

Python 2.5.6 build error on Mac Lion

南笙酒味 提交于 2019-12-11 05:31:29
问题 Here is what I would like to do. Use web2py with MySQL. To do that, I need to use source web2py rather than web2py.app To use web2py, I need Python 2.5 I am having trouble building and installing Python 2.5 I downloaded Python-2.5.6.tgz from Python release page. Now, I did ./configure and then make Then, I get the following error. gcc -c -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD

leiningen not working on os x

风流意气都作罢 提交于 2019-12-11 04:06:51
问题 When I try running leiningen on my os x lion I get the error below. The install is done as per the instructions on github (README). Can anyone give me a hint on this? The only possible solution I found via google was to run lein clean but that fails for me with a similar message. Exception in thread "main" java.lang.RuntimeException: java.lang.NoSuchMethodError: clojure.lang.KeywordLookupSite.<init>(ILclojure/lang/Keyword;)V at clojure.lang.Util.runtimeException(Util.java:165) at clojure.lang

How to statically link OpenSSL with my app in Xcode?

我只是一个虾纸丫 提交于 2019-12-11 01:57:58
问题 I am using a third party code which uses OpenSSL Crypto library. Since OSX 10.7 Apple has deprecated the use of OpenSSL in favor of their own solution. Since I have no experience in Crypto coding, I cannot port the third party code to use Common Crypto. So to safeguard against the possibility that Apple may later drop OpenSSL, is there a way to statically link it with my app in Xcode? I added the part 'in Xcode' since I am new to Xcode too, so when you tell me something like 'put flag X' then

Can't get 'rails new' to work

ぃ、小莉子 提交于 2019-12-11 00:22:47
问题 I'm a n00b eager to get my hands on Ruby on Rails (OSX 10.7). But first I need to install it. Now I've spend 9 hours trying to get it to work but it always fails when I try to create a new project: $ rails new /Users/tom/Documents/14-Utveckling/WhichTerminal exist identical README.rdoc identical Rakefile identical config.ru identical .gitignore conflict Gemfile Overwrite /Users/tom/Documents/14-Utveckling/WhichTerminal/Gemfile? (enter "h" for help) [Ynaqdh] Y force Gemfile exist app identical

Automator or Applescript, detect a new file in folder

≡放荡痞女 提交于 2019-12-10 23:05:33
问题 I am trying to write something that will detect a new file in a certain specified directory. I preferably would like this script to continue running indefinitely, and whenever I see a new file, I can copy it and move it somewhere else. I know this has to be possible, because dropbox does it, but I just do not know how to get this working or where to start. Any ideas? 回答1: What you're looking for (to spawn off Applescripts when adding new files into a "hot folder") is called "Folder Actions",

What are the biggest obstacles to overcome when switching from iOS app development to Mac app development? [closed]

纵然是瞬间 提交于 2019-12-10 22:17:22
问题 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 5 years ago . Mac app development is rumored to be very similar to iOS app development, but of course there are big differences. When we put all the facts about hardware and screen constraints aside, what are the biggest obstacles an experiences iOS app developer must overcome to start

Using OpenGL 3.2 with Derelict3 and GLFW 3 on OSX Lion

£可爱£侵袭症+ 提交于 2019-12-10 19:23:45
问题 I'm having trouble getting OpenGL 3.2 to run on Lion (osx 10.7.4) using Derelict3 and GLFW 3. Here's my test program: module glfw3Test; import std.stdio, std.conv; import derelict.glfw3.glfw3; import derelict.opengl3.gl3; string programName = "glfw3Test"; int width = 640; int height = 480; GLFWwindow window; void main() { // load opengl DerelictGL3.load(); // load GLFW DerelictGLFW3.load(); if(!glfwInit()) { glfwTerminate(); throw new Exception("Failed to create glcontext"); } writefln("GLFW:

Lion + Xcode 3.2.3 starting problem

白昼怎懂夜的黑 提交于 2019-12-10 18:16:41
问题 I just got a book for iPhone programming from the library which is based on Xcode 3.x so I want to start with that. Fortunately I updated from SnowLeopard to Lion with Xcode already installed so I didn't have problems to get it installed or running in the first place. So I read through the HelloWorld-Example and as soon as I try to start interface builder I get the message: This version of Interface Builder does not support documents of type "Interface Builder Cocoa Touch Document (XIB 3.x)"

Why am I not able to install Ruby 1.9.2 on Mac OSX Lion? [closed]

吃可爱长大的小学妹 提交于 2019-12-10 17:10:27
问题 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 trying to install Ruby 1.9.2 on a brand new MacBook Air with OSX Lion (10.7.2) and I keep getting an error message during the installation process. I'm new to Ruby and starting out with Ruby on Rails 3 Tutorial, so I downloaded RVM and then ran the command "$ rvm install 1.9.2." and this is what happened:

`build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

别来无恙 提交于 2019-12-10 16:06:12
问题 On OS X Lion when trying to start the rails server I get the error Could not find json-1.5.4 in any of the sources Run `bundle install` to install missing gems. If I then run bundle install json I get the following errors Installing json (1.5.4) with native extensions /Library/Ruby/Site/1.8/rubygems/installer.rb:556:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby