LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 10-27-2009, 01:34 AM   #1
biplabbijay
Member
 
Registered: Jul 2009
Posts: 81

Rep: Reputation: 15
CPPLINK: Undefined variable.


hi , i am new in linux. i am using opensuse 11.0. my configurations are


wcpplib/install> uname -a
Linux linux-by4q 2.6.25.5-1.1-default #1 SMP 2008-06-07 01:55:22 +0200 i686 i686 i386 GNU/Linux

i have made TCSH as my default login shell. i want to install HEED-C++ 2.07 software used for the simulation of gaseous detectors.for that i need to install WCPPLIB- a library. in the installation manual it is written that to in stall this library "run stript concom.b" where cocom.b is a file in that library.
1.what does it mean ?
2.the file concom.b contains only these three lines given below:
#! /usr/bin/env tcsh
$CPPLINK -o concom.e concom.c
#cp concom.e ../bin/concom
when i type "$CPPLINK -o concom.e concom.c" in shell prompt it returns


" wcpplib/install> $CPPLINK -o concom.e concom.c
CPPLINK: Undefined variable. "

also in the manual it is said that before installation environment variable has to set.i set the environment variables in the .tcshrc file as follows:


setenv CPPMAKEOPT "-MM"

### 1.for scientific linux version 4.1

#setenv CPPCOMPILE "g++ -c "
#setenv CPPCOMPILE "g++ "
#setenv CPPCOMPILE "g++ -g -c "
#setenv CPPCOMPILE "g++ -g "


### 2.for Linux, RedHat version 8.0


setenv CPPCOMPILE "g++ -DCOPY_RETURNS_COMMON_BASE -c "
setenv CPPCOMPILE "g++ -DCOPY_RETURNS_COMMON_BASE "
setenv CPPCOMPILE "g++ -DCOPY_RETURNS_COMMON_BASE -g -c "
setenv CPPCOMPILE "g++ -DCOPY_RETURNS_COMMON_BASE -g "



### 3.for Linux, RedHat older version


#setenv CPPCOMPILE "g++ -fhuge-objects -c "
#setenv CPPCOMPILE "g++ -fhuge-objects "
#setenv CPPCOMPILE "g++ -fhuge-objects -g -c "
#setenv CPPCOMPILE "g++ -fhuge-objects -g "

### 4.for Solaris and most of the others.

#setenv CPPCOMPILE "CC -c "
#setenv CPPCOMPILE "CC "
#setenv CPPCOMPILE "CC -g -c "
#setenv CPPCOMPILE "CC -g "





setenv FORTRAN77 g77
setenv ARCOMMAND "ar -rs"

setenv WCPPLIB $HOME

setenv CERNLIB /cern/pro/lib

setenv SPACKLIB "-L/cern/2000/lib -lpacklib -lnsl "

setenv CFLIBSERV "-lg2c"

setenv USE_CPP_SRANULUX


as you can see ihave choosen the second one.is it correct ?

3. how to set the LD_LIBRARY_PATH in this case ?

you can get the HEED-C++ 2.07 software and WCPPLIB library in the form of tar archive with the installation manual from the internet page http://cern.ch/ismirnov/heed/.i am attaching the installation manual with this.

anybody can help in these problems ? pardon me for my gramatical mistakes and thanks in advance.
 
Old 10-27-2009, 06:38 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,286

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
You may find some hints here :

Google .. wccplib ..

http://www.physics.carleton.ca/~yshi...stall-HEED.txt
The export commands can all be copied into one script,
like the Heed 'setup.sh'.
.....
.....
http://pi.physik.uni-bonn.de/~svn/we...eed%2Fsetup.sh

http://pi.physik.uni-bonn.de/~svn/we...setup.sh&rev=0

http://pi.physik.uni-bonn.de/~svn/we...ed%2F&rev=1638
.....
Good luck !
.....

P.S.: Add 1) run script means : a) cd wcpplib/install
b) ./concom.b
Add 2) CPPLINK will not be undefined after doing the
command : export CPPLINK=g++
Quote:
when i type "$CPPLINK -o concom.e concom.c" in shell prompt
Please don't. 'concom.c' creates no objects, 'concom.c' is supposed
to create all the Makefiles. Please read the text in 'concom.c'.
.....

Last edited by knudfl; 10-28-2009 at 05:35 AM.
 
  


Reply

Tags
installation


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MANPATH: Undefined variable adelaide98 Linux - General 10 08-06-2009 12:24 PM
Script issue with "Undefined variable" fuske Linux - General 3 05-19-2009 10:41 AM
Snort error on middlebox: Undefined variable name wsduvall Linux - Security 2 02-18-2009 08:56 PM
PHP Problem ('undefined index', 'undefined function') zokken Programming 2 12-04-2008 11:18 AM
undefined variable increments in PERL gaynut Programming 3 09-18-2008 10:46 AM


All times are GMT -5. The time now is 10:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration