Software Notes

This page will simply contain solutions to small, random little problems I've run across.

Subversion can't recode string under Debian Unstable/Sid

The error is:

svn: Can't recode string

Solution:

  1. # apt-get install locales
  2. # dkpg-reconfigure locales (Make sure that the UTF-8 version of your locale is selected and made default).
  3. $ export LC_ALL="en_AU.UTF-8" (For Australia, for example).

Then feel free to update/checkout/etc away. (Of course, if the problem is a co-worker using another charset, then this solution won't help, since AFAIK, you must be using the same charset for svn to work properly.

Invalid module format while inserting NDISWrapper under Debian Unstable/Sid

The error is:

Invalid Module Format

Solution:

  1. # rm /usr/bin/gcc (This was simply a symlink)
  2. # ln -s /usr/bin/gcc-3.3 /usr/bin/gcc

This problem was simply caused by the kernel being compiled with a different version of GCC to the module that you are trying to insert. There's probably a better way to do the above, but I was in a rush. Apparently this problem also sometimes occurs with Nvidia drivers.

Update: As Dan suggests below, just run the command: export CC=gcc-3.3 first, and there's no need for symlinks.

LaTeX / pdfTeX / XeLaTeX / XeTeX hanging

The error is that when running LaTeX or XeLaTeX, there is an infinite freeze or hang with no error messages, and CTRL-C is needed to stop the process.

Solution:

I managed to cause this problem by having the following definition in my header:

\renewcommand{\cite}[1]{\cite{#1}}

Apparently using \renewcommand to create a recursive definition will cause a hang. Instead, it should have read (in my case):

\renewcommand{\cite}[1]{\citep{#1}}

 

 


 

 

Comments:

Subject: Compiling with the correct version of GCC
Posted by Daniel Saunders - http://www.laus-deo.net on 2005-12-14 20:09:15
You can also run "export CC=gcc-3.4" so that gcc-3.4 will be called as the default compiler if a version isn't specified.
IP: Logged

 

Post a comment:

Name:
Email: (Either don't enter it, or you should obfuscate it).
Website: (Make it valid - eg: http://www.example.com/ )
Subject:
Magic Word: (Enter exiguous as the word) (Without this, your comment won't be posted!)
Comment: