1) This is the easiest part, simply
$ brew install postgres
2) this step is not obvious but you can’t move on without it (would be nice if brew can automate this step too :D)
$ initdb /usr/local/var/postgres
3) add /usr/local/bin to $PATH if it’s not already there, one way to do that is
$ echo 'export PATH=/usr/local/bin:$PATH' >> ~/.bash_profile && . ~/.bash_profile
without this step you will end up using /usr/bin/psql, which is installed by default in Lion, while trying to access db, which would give you the following error:
psql: could not connect to server: Permission denied
Is the server running locally and accepting
connections on Unix domain socket “/var/pgsql_socket/.s.PGSQL.5432”?
3.5) start postgres server
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
4) access postgres db
psql postgres your_username
psql postgres `whoami`
assuming your_username is the one who runs step 2
5) if everything’s ok you should be able to see
Type “help” for help.
type \q to exit
6) if you want to create your first db, do (under system shell, not postgres) a
and access it through
psql mydb your_username
Note: your_username in command psql is optional if the shell user is the creator of the db to be accessed, that is, you can simply type psql postgres or psql mydb to access the dbs.
http://nextmarvel.net/blog/2011/09/brew-install-postgresql-on-os-x-lion/ (didn’t use the method describe in this post but use the PATH method instead)
Followed instruction from http://www.tonymacx86.com/viewtopic.php?f=259&t=41546 to install Lion 10.7.2 on my newly bought HP 4530S (i3, 4GRAM, 320GB 7200RPM).
- Got a kernel panic upon reboot after installing hp installer, reset BIOS to factory default fixed that.
- Alt key is the Command key.
- Had a hard time to exit from full screen mode, found solution from here.
- [01/07/2012] Installed VirtualBox 4.1.8 and tried to start Ubuntu 11.10 64bit server and it failed with the following error, downgraded to 4.1.6 solved the problem.
VT-x features locked or unavailable in MSR. (VERR_VMX_MSR_LOCKED_OR_DISABLED).
Facetime “The server encountered an error processing registration please try again later” fix on Hackintosh
I have Lion running on my hackintosh (thanks to http://www.tonymacx86.com/) and the usb camera that I have (a Logitech QuickCam Orbit AF Webcam) happens to be supported by my build so I fired up Facetime the other night only to find the following error:
The server encountered an error processing registration please try again later
after the login credential is verified. After reading some posts on the forum I found the solution here and it turns out to be quite easy to fix: just download, install the latest Chimera (current version 1.5.4) from here, followed by a reboot and voila, the error no longer gets in the way. Loving my hackintosh.
This is by far the biggest disappointment I have towards Lion – I simply can’t find a single solution to bring back the desktop labels. I can work around by assigning different wallpapers to different desktops but it’s still not as convenient as having the desktop numbers shown on the task bar.
The currently stable version (3.1.7) of Tunnelblick would cause a kernel panic in Mac Lion while a connection is being made. Workaround is to use a beta version (3.2beta28) which is available at http://code.google.com/p/tunnelblick/downloads/detail?name=Tunnelblick_3.2beta28.dmg, released 7/31/2011.
[Edit 8/18/2011] Just updated Lion to 10.7.1 last night and version 3.2beta28 seems to be unstable as well. It has caused kernel panic two times in a row.
Need to keep looking for a version that works. Did a re-installation of the same version and it works afterwards.
Had a hardtime to get Lion download started following the guide at http://tonymacx86.blogspot.com/2011/07/xmove-multibeast-install-os-x-107-lion.html, I kept getting “This version of Mac OS X 10.7 cannot be installed on this computer” error while try to install Lion via App Store. Tried changing the system definition to MacPro3,1 without success. Found the solution from the comments below the guide (actually just found out it was mentioned very obviously in the guide as well, not sure it’s added after many people reported the same problem):
1) Get the newest version of multibeast (currently 3.8)
2) Select “System Utilities”, “Chimera” (this is the key), “MacPro3,1” and install