[codes-ross-users] Help needed in running codes.

Jenkins, Jonathan P. jenkins at mcs.anl.gov
Fri Feb 27 08:27:14 CST 2015


Hi Sughosh,

When you compiled the 0.3.0 release, did you use the corresponding revision of ROSS ("git checkout c04babe") as indicated in the codes-base INSTALL document? If not, doing so should fix the compilation problem (missing variable) you had before.

Additionally, from your command line output, it looks like you set the paths to the top-level source directory of the projects, rather than their installation directories. Installation of sources using the autotools or cmake (i.e. where the results of "make install" go) are controlled by the "prefix" variable (specified with the "--prefix" option when running configure on the CODES sources, "-DCMAKE_INSTALL_PREFIX" when running cmake with ROSS).  You should set the environment variables with respect to the prefix.

Let me know if you have additional questions.
John

From: Sughosh Divanji <sdivanji at hawk.iit.edu<mailto:sdivanji at hawk.iit.edu>>
Date: Thursday, February 26, 2015 at 8:37 PM
To: John Jenkins <jenkins at mcs.anl.gov<mailto:jenkins at mcs.anl.gov>>
Cc: "codes-ross-users at lists.mcs.anl.gov<mailto:codes-ross-users at lists.mcs.anl.gov>" <codes-ross-users at lists.mcs.anl.gov<mailto:codes-ross-users at lists.mcs.anl.gov>>, Raghav Kapoor <rkapoor7 at hawk.iit.edu<mailto:rkapoor7 at hawk.iit.edu>>, Ke Wang <kwang22 at hawk.iit.edu<mailto:kwang22 at hawk.iit.edu>>
Subject: Re: [codes-ross-users] Help needed in running codes.

Hi Jonathan,

Thanks for the info. I have setup CODESBASE,CODESNET and ROSS environment variables and tried to run example.c. However, compiling is failing because of the following reason.

sughosh at sughosh-Lenovo-G50-45:~/Desktop/IITC/CS597/codes-base/doc/example$ make
make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found
make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found
make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found
make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found
I/home/sughosh/Desktop/IITC/CS597/codes-base/include -I/home/sughosh/Desktop/IITC/CS597/codes-net/include/codes  -L/home/sughosh/Desktop/IITC/CS597/codes-base/lib -L/home/sughosh/Desktop/IITC/CS597/codes-net/lib  example.c   -lcodes-net -lcodes-base  -o example
make: I/home/sughosh/Desktop/IITC/CS597/codes-base/include: Command not found
make: [example] Error 127 (ignored)

bin directory is not prsent in my ROSS installation and the same with other errors as well.

I tried compiling codes-base 0.3.0 but it was failing at src/util/codes_mapping.c:483:51 as I have indicated in my earlier mail. So, I downloaded the source code from the git link mentioned in Developer Access page, http://git.mcs.anl.gov/radix/codes-base and git.mcs.anl.gov/radix/codes-net<http://git.mcs.anl.gov/radix/codes-net> and was able to compile codes-base and codes-net succesfully. For ROSS I have downloaded source code from https://github.com/carothersc/ROSS.

Thanks,
Sughosh
[https://mailfoogae.appspot.com/t?sender=ac2RpdmFuamlAaGF3ay5paXQuZWR1&type=zerocontent&guid=61f14e96-67f4-4a7e-8d58-e6881ace23a8]ᐧ

On Thu, Feb 26, 2015 at 8:51 AM, Jenkins, Jonathan P. <jenkins at mcs.anl.gov<mailto:jenkins at mcs.anl.gov>> wrote:
Hi Sughosh,

Instructions to build CODES (codes-base and codes-net repositories) can be found in their respective INSTALL documents. An example program, requiring codes-base and codes-net, can be found in codes-base/doc/example. To build it, you need to specify the paths to the codes installs via the CODESBASE, CODESNET, and ROSS environment variables. Details of the program as well as the CODES components utilized by the program can be found in the GETTING_STARTED document.

Additionally, what version / revision of ROSS/CODES are you using? We're in the midst of some changes on the master branches, so it's probably safer to start with the 0.3.0 releases with the ROSS revision specified in the INSTALL document.

John

From: Sughosh Divanji <sdivanji at hawk.iit.edu<mailto:sdivanji at hawk.iit.edu>>
Date: Wednesday, February 25, 2015 at 7:26 PM
To: "codes-ross-users at lists.mcs.anl.gov<mailto:codes-ross-users at lists.mcs.anl.gov>" <codes-ross-users at lists.mcs.anl.gov<mailto:codes-ross-users at lists.mcs.anl.gov>>, Raghav Kapoor <rkapoor7 at hawk.iit.edu<mailto:rkapoor7 at hawk.iit.edu>>, Ke Wang <kwang22 at hawk.iit.edu<mailto:kwang22 at hawk.iit.edu>>
Subject: [codes-ross-users] Help needed in running codes.

Hi,

I am trying to use codes for my project and I am new to codes. I have installed codes. Can you provide me a sample hello-world program and instructions on how to run it. I haven't been able to find documentation on how to run the programs and also make files seem to be broken.

Thanks,
Sughosh

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/codes-ross-users/attachments/20150227/22160ee0/attachment-0001.html>


More information about the codes-ross-users mailing list