Page 1 of 1

Posted: Wed Mar 07, 2007 9:57 am
by DSguru2B
Check the path of APT_COMPILER in your datastage administrator. This env. variable holds the path to your compiler.

Posted: Wed Mar 07, 2007 10:10 am
by lak
DSguru2B wrote:Check the path of APT_COMPILER in your datastage administrator. This env. variable holds the path to your compiler.
Thank you Brian..now I found the path (/usr/vacpp/bin/xlC_r) but still when I compile I am getting "No found" error please help

Thanks

-Lak

Posted: Wed Mar 07, 2007 10:21 am
by DSguru2B
How are you compiling it. You need to compile it by using xlC_r. Remember its case sensitive.

Posted: Wed Mar 07, 2007 10:24 am
by lak
DSguru2B wrote:How are you compiling it. You need to compile it by using xlC_r. Remember its case sensitive.
I am compiling like...

dsadm@etldev:/u01/Ascential/dev> xlC_r test.c

Posted: Wed Mar 07, 2007 10:25 am
by lak
lak wrote:
DSguru2B wrote:How are you compiling it. You need to compile it by using xlC_r. Remember its case sensitive.
I am compiling like...

dsadm@etldev:/u01/Ascential/dev> xlC_r test.c
dsadm@etldev:/u01/Ascential/dev> xlC_r test.c
ksh: xlC_r: not found.

Posted: Wed Mar 07, 2007 10:27 am
by DSguru2B
Strange. Contact your system admin to get this resolved. Its in your usr/bin. You should be able to invoke it :?

Posted: Wed Mar 07, 2007 1:30 pm
by ray.wurlod
APT_COMPILER is installed with a default value. It may not be correct. Check whether your machine even has a compiler installed and, if so, where it actually is. If you're trying to compile from the command line, the compiler executable's directory pathname will need to be in your PATH and any libraries it uses will need to be in your LD_LIBRARY_PATH. You may also need other environment variables set, depending upon where other components, such as header files, may be stored.

Posted: Thu Mar 08, 2007 8:24 am
by lak
ray.wurlod wrote:APT_COMPILER is installed with a default value. It may not be correct. Check whether your machine even has a compiler installed and, if so, where it actually is. If you're trying to compile from the command line, the compiler executable's directory pathname will need to be in your PATH and any libraries it uses will need to be in your LD_LIBRARY_PATH. You may also need other environment variables set, depending upon where other components, such as header files, may be stored.
Thanks Ray and Brian..Now I am able to compile by usinf full path

/u01/Ascential/dev> /usr/vacpp/bin/xlC_r test.c

Thank you once again for your quick responce.

-Lak

Posted: Thu Mar 08, 2007 8:34 am
by ray.wurlod
/usr/vacpp/bin/xlC_r test.c should therefore be the value of APT_COMPILER environment variable.

Posted: Thu Mar 08, 2007 8:36 am
by DSguru2B
Without the "test.c" portion :wink:

Posted: Thu Mar 08, 2007 8:39 am
by ray.wurlod
:oops: the joys of copy and paste!

Should i generate object file?

Posted: Mon Mar 12, 2007 4:33 am
by rameshrr3
Im trying to compile on similar lines
i get my compiler path using the following command

Code: Select all

>dsadmin -listenv Test | grep APT_COMPILER
Then i compile the c funtion after verifying if the complier exists

Code: Select all

>CC -c pxIFStringExists.c 
i get a file pxIFStringExists.o

I go define a new parallel routine in manager and specify the path where my object file is located.
What next? What do i do to the permissions on this object file?
Where do i place it so that my px transformer stage can use it?

Sorry if this seems like a thread hijacking.

Posted: Mon Mar 12, 2007 7:01 am
by DSguru2B
It is thread hi-jacking.
Thats all, once you provide the path to the object file (.o) you can use the routine inside your transformer. Make sure that your id has execute permission to the file and folder.