Welcome to iraf.net Thursday, March 28 2024 @ 09:52 AM GMT
prajwel |
05/06/2014 12:22PM (Read 1490 times)
|
|
|
Status: offline
Registered: 02/24/2014
Posts: 7
|
I've just started to learn SPP programming, and the very start ended in a unprecedented predicament.
I had saved this code as hello.x
PHP Formatted Code # hello
task hello = t_hello_world
procedure t_hello_world ()
begin
call printf ("hello,world!\n")
end
when I PHP Formatted Code xc hello .x it, it compiles it as hello.c and gives out the following message
PHP Formatted Code hello .x :
sys_runtask :
t_hello_world :
hello .f :
sysruk :
thelld :
/iraf /iraf /unix /hlib /f77 .sh : line 200: gcc : command not found
please help me with this
|
|
|
|
fitz |
05/06/2014 01:56PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
If this is a Mac system then the XCode tools (i.e. GCC) needs to be installed separately from the App Store, specifically you will need the "command-line tools" package. On a Linux system, the developer tools aren't always installed by default and so must be installed separately as well from the package installer. SPP is compiled to C code using XC and F2C that come with IRAF, the actual C code is then compiled with GCC which is assumed to be on the system.
|
|
|
|
prajwel |
05/06/2014 02:38PM
|
|
|
Status: offline
Registered: 02/24/2014
Posts: 7
|
Thank you so much. I very much appreciate your help and sorry to bug you with such trivial questions.
|
|
|
|
| |
|
Content generated in: 0.12 seconds |
|