osx-lion

Mac OSX Lion Postgres does not accept connections on /tmp/.s.PGSQL.5432

£可爱£侵袭症+ 提交于 2019-12-03 03:05:47
I'm getting a common Mac OSX error for Homebrew installations of Postgres, No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? This is apparently due to there being multiple installs on the system. However, the usual steps are not resolving things. I can successfully start Postgres and running: ps auxw | grep post returns .. euanmillar 847 0.0 0.0 2432768 588 s000 R+ 11:19am 0:00.00 grep postgres euanmillar 845 0.0 0.0 2439324 448 ?? Ss 11:19am 0:00.00 postgres: stats collector process euanmillar 844 0.0 0.0 2443176 1520

git svn migration failing with svn 1.8

陌路散爱 提交于 2019-12-03 02:57:11
I'm following the steps in: http://git-scm.com/book/en/v2/Git-and-Other-Systems-Git-as-a-Client to move an svn repository to git. My local svn version is: $ svn --version svn, version 1.8.10 (r1615264) compiled Aug 25 2014, 10:52:18 on x86_64-apple-darwin12.5.0 git version: $ git --version git version 2.1.0 When I clone the repository I get an error reading the local file system format: $ git svn clone file:///tmp/test-svn -s Initialized empty Git repository in /private/tmp/test-svn/.git/ Couldn't open a repository: Unable to connect to a repository at URL 'file:///tmp/test-svn': Unable to

How to install make and gcc on a mac?

别说谁变了你拦得住时间么 提交于 2019-12-03 02:18:15
I want to install Eclim on my macbook air (2011 version). But there are some problems I faced during the installation. It told me that I did not install make and gcc. I tried to find the solution for it but all solutions are talking about using XCode. In fact, I installed the XCode. But I still cannot install Eclim because there are no make and gcc installed. How can I install them so that I can install Eclim? Update for newer versions: The command line versions can now be installed straight from the command line itself; Open "Terminal" (it is located in Applications/Utilities) In the terminal

Using gcc not llvm-gcc with Mac OS X Lion

女生的网名这么多〃 提交于 2019-12-03 01:18:06
gcc is symbolically linked to llvm-gcc on Mac OS X Lion. prosseek ~> ls -alF /usr/bin/gcc lrwxr-xr-x 1 root wheel 12 Nov 12 14:39 /usr/bin/gcc@ -> llvm-gcc-4.2 How can I setup to use gcc-4.2 when gcc is called? As of Xcode 4.2 in Lion, Apple no longer ships its previous version of gcc-4.2 , which was in Xcode 4.1 and earlier versions. It now only ships llvm-gcc (gcc front-end with llvm code backend) and clang (clang front-end with llvm backend). While it is possible to install legacy versions of vanilla GNU gcc-4.2 from other sources, like MacPorts, (and without disturbing /usr/bin ), Apple

Is possible to use Mac OS X XPC like IPC to exchange messages between processes? How?

浪尽此生 提交于 2019-12-03 01:12:33
问题 According to Apple, the new XPC Services API, introduced in Lion, provides a lightweight mechanism for basic interprocess communication integrated with Grand Central Dispatch (GCD) and launchd. It seems possible to use this API as a kind of IPC, like the POSIX IPC, however, I cannot find how to do it. I am trying to communicate two processes using the XPC API so I can pass messages between them but I always get a "XPC connection invalid" error in the server side. I don't want an XPC Service,

How to install/use php on mac v 10.7.2

馋奶兔 提交于 2019-12-03 00:50:27
i'm your average college student interested in using PHP. Could anyone give me a 101 on how to install/enable it on a mac version 10.7.2 using simple, plain language? I will appreciate any and all help!! Cheers Nickiler No Need to Install PHP or Apache, They already ship with Mac 10.7 These are the basic steps you need to take for PHP and Apache to work together: Enable PHP in you httpd.conf file located - /etc/apache2/httpd.conf Setup your php.ini - sudo cp /etc/php.ini.default /etc/php.ini Enable the Apache web server located in the Sharing > Web Sharing Enable PHP in Apache Find this

Fetch Relationship Objects

半世苍凉 提交于 2019-12-03 00:35:48
CoreData beginner I have a simple problem with CoreData. My model has two entities, now called A and B. Entity A has a to many relationship of B entities, which has a inverse relationship to entity A. I'm retrieving entities A with this code: NSManagedObjectContext *context = [self managedObjectContext]; NSEntityDescription *entity = [NSEntityDescription entityForName:@"A" inManagedObjectContext:context]; NSFetchRequest *request = [[NSFetchRequest alloc] init]; [request setEntity:entity]; NSSortDescriptor *descriptor = [[NSSortDescriptor alloc] initWithKey:@"name" ascending:YES]; [request

Unable to get MacPort functionality after installing Xcode 4.3

痴心易碎 提交于 2019-12-03 00:20:21
问题 I am having trouble getting MacPorts to function properly. I just installed OSX Lion 10.7.3 I downloaded and installed MacPorts first, and then after reading the requirements, I downloaded Xcode4.3 from the App Store, and then installed it. I launched Xcode and it looks to be operational and functional. However when I attempted to port with MacPorts, it gave me this error message(excerpt): Warning: xcodebuild exists but failed to execute Warning: Xcode does not appear to be installed; most

Unicode characters in Ruby 1.9.3 IRB with RVM

China☆狼群 提交于 2019-12-03 00:15:44
Update : I found almost exact similar question , yet it has slightly different prerequisites and thus doesn't help much. Given: MacOS Lion 10.7.3 rvm 1.14.2 ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0] Ruby was installed with the following line: rvm install 1.9.3 --with-readline-dir=/usr/local/Cellar/readline/6.2.2/ When I fire up irb or rails c and start typing unicode characters, I get: \U+FFD0\U+FFBF\U+FFD1\U+FFD0\U+FFB8\U+FFD0\U+FFBC\U+FFD0\U+FFB5\U+FFD1 How do I get unicode characters displayed correctly when typing on Ruby/Rails consoles? P.S. Typing same characters

How do I timestamp every ping result?

自闭症网瘾萝莉.ら 提交于 2019-12-03 00:14:11
问题 Ping returns this by default: 64 bytes from 203.173.50.132: icmp_seq=0 ttl=244 time=57.746 ms Is there some way I can get it to add the timestamp? For example, Mon 21 May 2012 15:15:37 EST | 64 bytes from 203.173.50.132: icmp_seq=0 ttl=244 time=57.746 ms I'm on OS X v10.7 (Lion) which seems to have some BSD version of ping. 回答1: I could not redirect the Perl based solution to a file for some reason so I kept searching and found a bash only way to do this: ping www.google.fr | while read pong;