Compiling Native Extensions under Xcode 5.1

Trying my hand of late with python and ruby and other bits and pieces but found myself hitting a lot of clang compiler issues when trying to install ruby gems etc on my mac, specifically this sort of thing:

compiling generator.c
linking shared-object json/ext/generator.bundle
clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
make: *** [generator.bundle] Error 1

Luckily after some googling manbolo.com to the rescue, Xcode 5.1 it appears has changed something from a warning to an error as explained in more detail on the blog post here.

Anyway whack in an

export ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future

and you should be right next time you try to

gem install pg

or of course you may need to do this if your using sudo

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install helios

Hope this helps you too.

Neo4j on EC2 quickly and easily

Want to setup neo4j database on a ec2 instance in record time? Follow the instructions here…

http://www.neo4j.org/develop/ec2

Sometimes you need to find the disk space hogs on a linux machine. Think of them as the big fat ducks if you like. Then you can just add this to your profile and recursively find the top 10 fat disk hogs.

	#setup a shortcut to call the command
	alias ducks=du -cks * |sort -rn |head -11

Maven doesn’t ship by default anymore on Mavericks, which is annoying but lucky homebrew makes it easy to get it installed.

Just follow these two steps to install homebrew (if you haven’t already got it) and then install the maven brew…

Then sit back and enjoy some coffee.

	#install homebrew if you don't have it already
	ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"

	#install maven
	brew install maven

For work I’ve had to evaluate a few Product Information management systems. These are a few that I have looked into which look promising.

  • http://www.pimwi.com
  • http://www.akeneo.com
  • http://www.pimcore.org
  • http://www.salsify.com
  • http://www.hybris.com.au