c++ compiler

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
dspxguy
Participant
Posts: 156
Joined: Thu May 24, 2007 4:09 pm
Location: Simi Valley, CA

c++ compiler

Post by dspxguy »

how would i know from unix command line which supported c++ compiler is being used with datastage.
thanks
ds_is_fun
Premium Member
Premium Member
Posts: 194
Joined: Fri Jan 07, 2005 12:00 pm

Re: c++ compiler

Post by ds_is_fun »

The UNIX command
which cc
Will tell you where c++ compiler is installed.
Sometime GNU c++ compilers could be installed. To check for that type-
which gcc

If no compilers are installed then you will see -
no cc found in <path>
Those who throw objects at crocodiles should be asked to retreive 'em.
dspxguy
Participant
Posts: 156
Joined: Thu May 24, 2007 4:09 pm
Location: Simi Valley, CA

Post by dspxguy »

thanks for the post,
i found out where my compiler is located but....which gcc does not give me the desired output.
all it gives me is
which: 0652-141 There is no gcc in /usr/bin /etc /usr/sbin
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Then your PATH is not set up to find it. Use a find command.

Code: Select all

find / -name gcc -print 2>/dev/null
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ds_is_fun
Premium Member
Premium Member
Posts: 194
Joined: Fri Jan 07, 2005 12:00 pm

Post by ds_is_fun »

When you find the path..I recommend you add the path to your profile.
Depending on your default shell add the path of the compiler to either of the login profiles below -

-rw-r--r-- 1 xthotaa etl 136 Aug 10 11:25 local.cshrc
-rw-r--r-- 1 xthotaa etl 157 Aug 2 08:29 local.login
-rw-r--r-- 1 xthotaa etl 174 Aug 2 08:29 local.profile

You can list them from your home path by the UNIX command
ls -l
Those who throw objects at crocodiles should be asked to retreive 'em.
dspxguy
Participant
Posts: 156
Joined: Thu May 24, 2007 4:09 pm
Location: Simi Valley, CA

Post by dspxguy »

ray.wurlod wrote:Then your PATH is not set up to find it. Use a find command.

Code: Select all

find / -name gcc -print 2>/dev/null
...

Hi ray,
thnks for the post, i did try that but nothing happened, all i could see was the cursor blinking in the unix prompt , i also checked the output file and it was empty. :cry:
ds_is_fun
Premium Member
Premium Member
Posts: 194
Joined: Fri Jan 07, 2005 12:00 pm

Post by ds_is_fun »

Try this
find -name gcc -print 2>/<your home path>/2
Those who throw objects at crocodiles should be asked to retreive 'em.
dspxguy
Participant
Posts: 156
Joined: Thu May 24, 2007 4:09 pm
Location: Simi Valley, CA

Post by dspxguy »

ds_is_fun wrote:Try this
find -name gcc -print 2>/<your home path>/2

Cannot write to a directory.
ksh: /home/gurty: 0403-005 Cannot create the specified file.

seems i dont have the priviliges
ds_is_fun
Premium Member
Premium Member
Posts: 194
Joined: Fri Jan 07, 2005 12:00 pm

Post by ds_is_fun »

Hey! you cannot write to a directory. You can only write to a file.
You missed the /2 at the end of your path.
find -name gcc -print 2>/<your home path>/2
Is that a Solaris machine you have there?

dspxguy wrote:
ds_is_fun wrote:Try this
find -name gcc -print 2>/<your home path>/2

Cannot write to a directory.
ksh: /home/gurty: 0403-005 Cannot create the specified file.

seems i dont have the priviliges
Those who throw objects at crocodiles should be asked to retreive 'em.
dspxguy
Participant
Posts: 156
Joined: Thu May 24, 2007 4:09 pm
Location: Simi Valley, CA

Post by dspxguy »

ds_is_fun wrote:Hey! you cannot write to a directory. You can only write to a file.
You missed the /2 at the end of your path.
find -name gcc -print 2>/<your home path>/2
Is that a Solaris machine you have there?

dspxguy wrote:
ds_is_fun wrote:Try this
find -name gcc -print 2>/<your home path>/2

Cannot write to a directory.
ksh: /home/gurty: 0403-005 Cannot create the specified file.

seems i dont have the priviliges
i have aix unix 5.3
it worked.
but when i go and see in my home directory i see the file i created (2) and when i do a vi , i see this
Usage: find [-H | -L] Path-list [Expression-list]
dspxguy
Participant
Posts: 156
Joined: Thu May 24, 2007 4:09 pm
Location: Simi Valley, CA

Post by dspxguy »

ok i found the command for finding out the compiler version

Code: Select all

lslpp -l | grep xlC

Thanks for your help guys
Yuan_Edward
Participant
Posts: 73
Joined: Tue May 10, 2005 6:21 pm
Location: Sydney

Re: c++ compiler

Post by Yuan_Edward »

DataStage Environment Variable APT_COMPILER/APT_LINKER should give the answer.
dspxguy wrote:how would i know from unix command line which supported c++ compiler is being used with datastage.
thanks
Edward Yuan
Post Reply