c++ compiler
Moderators: chulett, rschirm, roy
c++ compiler
how would i know from unix command line which supported c++ compiler is being used with datastage.
thanks
thanks
Re: c++ compiler
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>
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.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
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.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
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
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.
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.
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?
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.
i have aix unix 5.3ds_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
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]
ok i found the command for finding out the compiler version
Thanks for your help guys
Code: Select all
lslpp -l | grep xlC
Thanks for your help guys
-
- Participant
- Posts: 73
- Joined: Tue May 10, 2005 6:21 pm
- Location: Sydney
Re: c++ compiler
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