Technology Insights

How to Install a Ruby Gem Server

There are numerous reasons it is beneficial to have your own gem server including controlling the versions of various gems deployed to all of your servers. Below is a brief explanation of how to install a gem server on your local network.

1. Install Web Server: If you do not already have a web server installed then install LiteSpeed or Apache

Technology Errors

Command Line Applications with Visual Studio 2008 and C++

From time to time the need arises for me to create a command line application for Windows using Visual Studio 2008.  Lately I keep forgetting the same thing for my project and when I copy the application over to another Windows machine that doesn’t have VS2008 installed, I run into the following error “The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more details.”. Unfortuantly what I fail to remember is that by default VS2008 wants me to create managed code.

Technology Errors

Compiling ruby on OS X 10.5: readline.c:703: error: ‘filename_completion_function’ undeclared

When compiling Ruby 1.8.6 (in this case, p287) on OS X 10.5, you may encounter an error similar to the following:

readline.c: In function ‘filename_completion_proc_call’:
readline.c:703: error: ‘filename_completion_function’ undeclared (first use in this function)
readline.c:703: error: (Each undeclared identifier is reported only once
readline.c:703: error: for each function it appears in.)
readline.c:703: warning: assignment makes pointer from integer without a cast
readline.c: In function ‘username_completion_proc_call’:
readline.c:730: error: ‘username_completion_function’ undeclared (first use in this function)
readline.c:730: warning: assignment makes pointer from integer without a cast
make[1]: *** [readline.o] Error 1
make: *** [all] Error 1

Some sites suggest you will need to apply a series of patches to correct this issue and compile for Leopard, but this is not the case. Everything you need comes with OS X by default.