MinhTech.com

Yet another technology tutorial blog.

Fedora Linux 14 Install Nonpareil Calculator Emulator

By • Mar 18th, 2011 • Category: Linux

Install Eric Smith’s Nonpareil high-fidelity simulator for classic HP calculators on Fedora Linux 14.

First, Download and Unarchive the Source:

Version 0.79 can be downloaded from Eric Smith’s site at http://nonpareil.brouhaha.com/download/. I will be installing version 0.78 which has the Voyager series models that include my beloved HP 15c.

> gzip -d nonpareil-0.78.tar.gz
> tar -xvf nonpareil-0.78.tar
> cd nonpareil-0.78

Install Build Dependencies:

> yum install gcc flex bison scons python netpbm netpbm-progs

We install all the build dependencies listed in the source’s INSTALL file. We also install the netpbm-progs package for the pngtopnm command. Otherwise we will later receive a sh: pngtopnm: command not found error message.

Install Runtime Dependencies:

> yum install gtk2 gtk2-devel gdk-pixbuf2 gdk-pixbuf2-devel glib2 glib2-devel libxml2 libxml2-devel SDL SDL-devel SDL_mixer SDL_mixer-devel

Next we install the runtime dependencies listed in the README file. Note that the corresponding header files must also be installed as stated in the source’s INSTALL file.

Install Nonpareil:

> scons install

<command-line>:0:1: error: macro names must be identifiers
scons: *** [build/posix/csim.o] Error 1
scons: building terminated because of errors.

Oops, it looks like a source file needs to be modified. Search for the line csim_env.Append (CPPDEFINES = {'DEFAULT_PATH': build_env ['libdir']}) and edit it as listed below.

> vi src/SConscript

csim_env.Append (CPPDEFINES = [('DEFAULT_PATH', build_env ['libdir'])])

> scons install

scons: done building targets.

That’s it. The nonpareil command can be found at the path /usr/local/bin/. Enjoy!

is a technology junkie.
Email this author | All posts by

Leave a Reply