Completely uninstall PostgreSQL 9.0.4 from Mac OSX Lion?

This question may look like a duplicate of: How to uninstall postgresql on my Mac (running Snow Leopard) however, there are two major differences. I’m running Lion and I’m trying to uninstall PostgreSQL 9.0.4. I’ve looked at the last question and the link that it referenced, but I did not find a file called “uninstall-postgresql” … Read more

Setting PATH environment variable in OSX permanently

I have read several answers on how to set environmental variables on OSX as permanently. First, I tried this, How to permanently set $PATH on Linux/Unix? but I had an error message saying no such file and directory, so I thought I could try ~/.bash_profile instead of ~/.profile but it did not work. Second, I … Read more

Repairing Postgresql after upgrading to OSX 10.7 Lion

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, … Read more

Access restriction: The type ‘Application’ is not API (restriction on required library rt.jar)

Here is the code: package mscontroller; import javax.swing.*; import com.apple.eawt.Application; public class Main { public static void main(String[] args) { Application app = new Application(); app.setEnabledAboutMenu(true); AMEListener listener = new AMEListener(); app.addApplicationListener(listener); JFrame mainFrame = new JFrame(“Application Menu Example”); mainFrame.setSize(500, 500); mainFrame.setVisible(true); } } here is the error: Exception in thread “main” java.lang.Error: Unresolved compilation … Read more

pip installs packages successfully, but executables not found from command line

I am working on mac OS X Yosemite, version 10.10.3. I installed python2.7 and pip using macport as done in http://johnlaudun.org/20150512-installing-and-setting-pip-with-macports/ I can successfully install packages and import them inside my python environment and python scripts. However any executable associated with a package that can be called from the command line in the terminal are … Read more

Rails: Installing PG gem on OS X – failure to build native extension

It seems many others have had problems installing the pg gem. None of the solutions posed for others have worked for me. I have tried to install the pg gem and postgres.app. The pg gem won’t install. The first error I get is: An error occurred while installing pg (0.17.0), and Bundler cannot continue. Make … Read more