Technology Errors

ruby.exe: No such file or directory — /cygdrive/c/ruby/bin/gem (LoadError)

When attempting to install a gem using cygwin on a Windows XP machine I received the below error. I was hoping I wasn’t going to have to reinstall RubyGems underneath cygwin because it would have just been a pain. I had Ruby installed and operational underneath cygwin but for some reason rubygems was not working. I decided to instead make an alias to point to the gem command that I had installed straight to Windows. Use the below command to add an alias to cygwin to make gem an available command.

Error: ruby.exe: No such file or directory — /cygdrive/c/ruby/bin/gem (LoadError)

To resolve use the below command from your cygwin bash prompt to create an alias for gem. On my laptop Ruby is installed in C:\ruby so the commands are located in C:\ruby\bin.

Technology Errors

fatal: Unable to look up github.com (port 9418) (Name or service not known)

I was attempting to clone a github repo on a Slicehost account and received the error below. Its possible that github.com recently updated DNS so if this happens to you then you can use the temporary fix I located on github’s twitter account.

Error:fatal: Unable to look up github.com (port 9418) (Name or service not known)

This error was caused by attempting to clone edavis10’s redmine repo using the command below.

bash

  1. git clone git://github.com/edavis10/redmine.git

Technology Errors

sudo: sorry, you must have a tty to run sudo

I was recently working on a Perl script that would SSH to another server and run a sudo command on the remote server that was failing. The error that was received is below.

Error: sudo: sorry, you must have a tty to run sudo

The reason for this is an update along the way with sudo locked it down further by adding the below line to /etc/sudoers configuration file.

Technology Errors

Zen Cart Error Debug: Checkout Process Showing a Blank Page

Recently I had a Zen Cart store showing a completely blank page during the checkout process. With the default settings we were unable to find out what the issue was so we needed to figure out a way for more debugging. To easily accomplish a verbose debug log of each action on the site you can download a Zen Cart add-on called “Debug Error Logging Utility”. This add-on will provide details of each page processed on the site or for the administration section. Follow the directions below to enable more logging.

  1. Download Debug Error Logging Utility: Visit the following URL in a browser to download the Debug Error Logging Utility: Download Here