CONTAM on a linux machine

111 views
Skip to first unread message

Krish Kar

unread,
Mar 29, 2023, 4:59:40 PM3/29/23
to CONTAM
I am trying to run CONTAM on a linux ubuntu machine.  I downloaded the tar file - but it is not opening - I did not find any suer guide on Linux.  Can you please point me to some direction.  Thanks.

David Lorenzetti

unread,
Mar 29, 2023, 6:23:01 PM3/29/23
to Krish Kar, CONTAM
I assume you downloaded the tar.gz file from the NIST website, like this one:
contam-x-3.4.0.1-Linux-64bit.tar.gz
from here:
https://www.nist.gov/el/energy-and-environment-division-73200/nist-multizone-modeling/software/contam/download

You should be able to unzip the file from a terminal, like this:
$ cd <directory with the tar.gz file>
$ gzip -d contam-x-3.4.0.1-Linux-64bit.tar.gz

You can also use
$ gunzip contam-x-3.4.0.1-Linux-64bit.tar.gz

This should give you a "tar" file (though it sounds like you got this
step already):
contam-x-3.4.0.1-Linux-64bit.tar

Then to unpack the tarball, do something like this:

$ tar -xvf contam-x-3.4.0.1-Linux-64bit.tar

The "x" says to extract the tarball, The "f" tells it which file to
unpack. The "v" makes it print out what it's extracted, and you can
omit the "v" if you don't care.

After that, you should be able to run contam-x:

$ cd contam-x-3.4.0.1-Linux-64bit
$ ./contamx3 <path-to-PRJ-file>

Hope this helps.
-Dave

On Wed, Mar 29, 2023 at 1:59 PM Krish Kar <krishm...@gmail.com> wrote:
>
> I am trying to run CONTAM on a linux ubuntu machine. I downloaded the tar file - but it is not opening - I did not find any suer guide on Linux. Can you please point me to some direction. Thanks.
>
> --
> To unsubscribe from this group, send email to contam+un...@list.nist.gov
>
> View this message at https://list.nist.gov/contam
> ---
> To unsubscribe from this group and stop receiving emails from it, send an email to contam+un...@list.nist.gov.

William Dols

unread,
Mar 30, 2023, 9:27:37 AM3/30/23
to CONTAM, David Lorenzetti, CONTAM, krishm...@gmail.com
Just to clarify, the graphical user interface of CONTAM (referred to as ContamW) only runs in Windows.
You should be able to run ContamW in Windows running in a virtual environment, e.g., VirtualBox or Parallels.
Only the simulation engine (referred to as ContamX or contam-x in Dave's response) is provided to run directly in Linux.
- Stuart

Krish Kar

unread,
Mar 30, 2023, 5:02:10 PM3/30/23
to CONTAM, William Dols, David Lorenzetti, CONTAM, krishm...@gmail.com
David,
I followed your instructions.  I am getting below error - I guess it may be due to I do not have the .prj file defined. But my question how do I create the .prj file - is it a 

(base) krishkar:~/Documents/CONTAM$ cd contam-x-3.4.0.1-Linux-64bit
(base) krishkar:~/Documents/CONTAM/contam-x-3.4.0.1-Linux-64bit$ ls
contamx3  libcontam-p.a  libcontamx-lib.a  prjup  simcomp  simread
(base) krishkar:~/Documents/CONTAM/contam-x-3.4.0.1-Linux-64bit$ ./contamx3
Enter project name:  contamhome
Running ContamX 3.4.0.1 on contamhome.prj
ERROR Could not open file contamhome.prj

I created blank text file testcontam.prj but it game me error also:

(base) krishkar:~/Documents/CONTAM/contam-x-3.4.0.1-Linux-64bit$ ./contamx3
Enter project name:  testcontam.prj
Running ContamX 3.4.0.1 on testcontam.prj
ERROR Not a ContamW or LoopDA 3.4 file


any idea how to fix these issue.

Thanks.

Krish

Krish Kar

unread,
Mar 30, 2023, 5:04:51 PM3/30/23
to CONTAM, William Dols, David Lorenzetti, CONTAM, krishm...@gmail.com
Hi unfortunately I do not have a windows PC - I have a MAC and linux machine.  Are you saying I need to buy a windows PC to run CONTAM or can I run it in Linux or MAC.  I ran into problem described above in linux PC regarding project file.

On Thursday, March 30, 2023 at 9:27:37 AM UTC-4 William Dols wrote:

Dols, William Stuart (Fed)

unread,
Mar 30, 2023, 5:09:14 PM3/30/23
to Krish Kar, CONTAM, David Lorenzetti, CONTAM

One creates PRJ files using ContamW.
As indicated in my previous message, you can run ContamW on a Mac or Linux only within a Windows virtual environment.
I have know several folks who have used Parallels to do so on a Mac.
- Stuart

Sahil Chandapa

unread,
Apr 6, 2023, 4:11:30 AM4/6/23
to CONTAM, Krish Kar
can you contact me I want some questions about CONTAM can you help me in that my email is  sahil....@sot.pdpu.ac.in I'm from India so
Reply all
Reply to author
Forward
0 new messages