Errors w/fix

Basically my own gist for laziness.

Error

$ nikola help auto
Traceback (most recent call last):
  File "/mnt/keg/Python/Nikola/nikola_venv/lib/python3.4/site-packages/doit/doit_cmd.py", line 168, in run
    return command.parse_execute(args)
  File "/mnt/keg/Python/Nikola/nikola_venv/lib/python3.4/site-packages/doit/cmd_base.py", line 122, in parse_execute
    return self.execute(params, args)
  File "/mnt/keg/Python/Nikola/nikola_venv/lib/python3.4/site-packages/doit/cmd_help.py", line 157, in execute
    six.print_(cmd.help())
UnicodeEncodeError: 'ascii' codec can't encode character '\u2013' in position 269: ordinal not in range(128)

Fix

# List all locales
locale -a
# locales for my specific language and country
$ locale -a | grep en_US
en_US.ISO8859-1
en_US.ISO8859-15
en_US.US-ASCII
en_US.UTF-8

# sh
set LC_ALL=en_US.UTF-8

# tcsh
setenv LC_ALL en_US.UTF-8

See also:

https://www.freebsd.org/doc/handbook/using-localization.html

Error

ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by /usr/local/lib/gcc48/libgfortran.so.3 not found

Fix

# export LD_LIBRARY_PATH=/usr/local/lib/gcc48/
# setenv LD_LIBRARY_PATH /usr/local/lib/gcc48