exceptionz

Thoughts on Technology, Methodology and Programming.

Quick note: Ubuntu(gutsy) C compiler install and setup (glibc-devel)

Posted by Marcus Wyatt on 11 March 2008

UPDATE: Tim Haines notified me that you can install all the necessary tools with one command:

apt-get install build-essential

Thanks Tim, I’ve tried it on a clean VPS and it works a charm…

If you are busy setting up a new Ubuntu Linux server and you get the following error:

configure: error: no acceptable C compiler found in $PATH

when trying to run ./configure, then you need to install the gcc compiler (Yeah, I know… this is like a no brainer for you *nix guru’s).

Here is the command to install the gcc compiler on Ubuntu:

sudo apt-get install gcc

But now you get the following error:

error: checking for C compiler default output file name

Most results on on google search point you glibc-devel as the solution. But, alas… apt-get will report the following message when you try to install glibc-devel:

Couldn’t find package glibc-devel

So what to do? The correct Ubuntu package that is similar to the glibc-devel is libc6-dev. Below is the command to install the Ubuntu package:

sudo apt-get install libc6-dev

Happy compiling and installing…

Technorati Tags:

Advertisements

Posted in Software, Tools, Ubuntu | 1 Comment »

You can now build the source code in either VS2k5 or VS2k8

Posted by Marcus Wyatt on 11 March 2008

I’ve updated the source code to include some conditional compilation directives to support different Visual Studio IDE versions. So if you are still stuck in VS2005 land, you can now build the source and be able to take advantage of the new features that Owen Evans added.

These include the new attributes (Context, BeforeAll, BeforeEach, AfterAll, AfterEach) and new functionality like Collection.Contains#WithProperty. If you lucky to be using VS2008 you’ll have new functionality that allows you to pass lambda’s. For more information look at http://bgeek.net/2008/02/14/nspecify-rspec-well-closer-anyway/

Owen also added a new library called NSpecify.Framework.Extensions. This gives you some extension methods that you can use to specify your expectations directly on the object under test.

i.e. newDeveloper.Surname.Must().Equal(“Evans”);

Nice hey!

Posted in BDD, Development, OO, Software, TDD, Tools | Tagged: , , | Leave a Comment »

Ruby, Rails, TextMate, JavaScript, Mac OSX, Subversion

Posted by Marcus Wyatt on 15 February 2008

Ruby

Rails

TextMate

JavaScript

Mac OSX

Subversion

Technorati Tags: , , , , ,

Posted in JavaScript, Mac, OS X, Rails, Ruby, Software, Subversion, TextMate | Leave a Comment »

Ruby, Rails, RSpec, JavaScript, Ubuntu, Mac OS X

Posted by Marcus Wyatt on 12 February 2008

Ruby

Rails

RSpec

JavaScript

Ubuntu

Mac OS X

Technorati Tags: , , , , ,

Powered by ScribeFire.

Posted in BDD, JavaScript, Mac, OS X, Rails, RSpec, Ruby, Ubuntu | 1 Comment »

Ruby, Rails, RSpec, Rails Plugin, JavaScript, OS X

Posted by Marcus Wyatt on 29 January 2008

Ruby

Rails

RSpec

Rails Plugin

JavaScript

OS X

Technorati Tags: , , , , ,

Post created with TextMate.

Posted in JavaScript, OS X, Rails, Rails Plugins, RSpec, Ruby | Leave a Comment »

Ruby, Rails, Rails Plugin, CSS

Posted by Marcus Wyatt on 20 January 2008

Ruby

Rails

Rails Plugin

  • AttributeFu – makes multi-model forms so easy you’ll be telling all of your friends about it.
  • assert_efficient_sql – the assertion intercepts and copies out your MySQL SELECT statements, then calls EXPLAIN on each one, and inspects the results for common problems.

CSS

SEO

Technorati Tags: , , , ,

Post created with TextMate.

Posted in CSS, Rails, Rails Plugins, Ruby, SEO | Leave a Comment »

Ruby, Rails, OS X (Leopard), CSS

Posted by Marcus Wyatt on 14 January 2008

Ruby

  • Hash#tomod – extend your class to except a hash of values in the constructor and then access the values as if they are read accessors on the object. Very enlightening post, I’m sure ActiveRecord::Base implements something.

Rails

OS X (Leopard)

CSS

Technorati Tags:

,

,

,

Powered by ScribeFire.


Posted in CSS, Mac, OS X, Rails, Ruby | Leave a Comment »

Ruby, Rails, JavaScript

Posted by Marcus Wyatt on 8 January 2008

Ruby

Rails

JavaScript

Technorati Tags: , ,

Post created with TextMate.

Posted in JavaScript, Rails, Ruby | 1 Comment »

Ruby, Rails, Rails Plugins, JavaScript, SEO

Posted by Marcus Wyatt on 4 January 2008

Ruby

Rails

Rails Plugins

JavaScript

SEO

Technorati Tags: , , , ,

Powered by ScribeFire.

Posted in BDD, JavaScript, Rails, Rails Plugins, RSpec, Ruby, SEO | Leave a Comment »

Ruby, Rails, TextMate

Posted by Marcus Wyatt on 24 December 2007

Ruby

Rails

TextMate

Technorati Tags: , ,

Powered by ScribeFire.

Posted in Rails, Ruby, TextMate | Leave a Comment »