HOW TO GET DMAK WORKING -- May, 2006
- DEPENDENCIES
This version of DMAK uses wxEuphoria.
For Windows, you need to install the DLL file. (wxeu.dll) For Linux, you need to install the SO file. (wxeu.so)
To get these files, click on:
http://sourceforge.net/projects/wxeuphoria/
Then click on:
wxeuphoria --- Download
Then download the .dll file for windows,
or the .so for Linux.
Another way to get these files is to click on:
http://wxeuphoria.sourceforge.net/
Then click on the latest version of wxEuphoria.
Then click on the DLL build for Windows,
or the the SO build for Linux.
About the DLL (wxeu.dll):
[quote]
This file is required to run any wxEuphoria applications for Windows.
It should be unzipped in either your euphoria/bin or Windows/System32 folder.
[/quote]
About the SO (wxeu.so):
[quote]
The compiled binary of the wxWidgets library for Linux.
It should be put into your /usr/lib directory.
[/quote]
2. DATA from USDA (United States Department of Agriculture)
First go to:
http://www.nal.usda.gov/fnic/foodcomp/
Second, download the latest data.
At the time of this writing it is "sr18.zip"
Next time it probably will be "sr19.zip"
Download the full ascii version.
Third, create a subdirectory (if it is not already created) in the directory that you have put dmak in, and call it "usda_data"
Fourth, put the files from sr??.zip in "usda_data".
You can put all of them in if you want, but you need only
these:
FD_GROUP.txt
FOOD.DES.txt
NUTR_DEF.txt
NUT_DATA.txt
WEIGHT.txt
Forget about usda.edb used in previous versions of dmak. It is no longer used.
Every time USDA makes an update in their data, you can download their data and put their new data in the "usda_data" subdirectory and it is supposed to work.
3. HOW TO RUN DMAK (after you do the above)
The Windows executable is: dmak.exe
The Linux executable is: dmak (without the extender)
Both are made by the same source code, and use the same data.
To run the Windows version:
Just double-click on dmak.exe
To run the Linux version:
If all is well, if you are using KDE or Nautilus, just click (or double-click)
on dmak That is supposed to work.
If it doesn't, then:
1. Fire up a terminal.
2. Navigate to the directory that dmak is in.
3. Type ./dmak
That will work.
Debian Linux seems to be a special case. Add: export TERM=ansi to .bashrc (or however you set up your environment)
4. IF YOU STILL GOTTA PROBLEM
Gimme a holler.
Jerry Story jstory@ocii.com
