HP-UX /opt/aCC/lbin/ecom: Execute permission denied

I'm trying to compile cpp code on HP-UX machines. It gave me following errors.
What may be the reason?

Thanks in advance.
root@localhost> uname -ar
HP-UX localhost B.11.23 U ia64 2143951832 unlimited-user license
root@localhost> cat test.cpp 
#include <iostream.h>
int main()
      int x,y;
      cout << "Enter an integer: ";
      cin >> x;
      y = x * 2;
      cout << "\n" << y <<" is twice " << x <<".\n";
root@localhost> make test
        aCC -O test.cpp  -o test
sh: /opt/aCC/lbin/ecom: Execute permission denied.
*** Error exit code 1

root@localhost> ls -ltr /opt/aCC/lbin/ecom
-rwxr-xr-x   1 bin        bin        19089469 Apr 19  2006 /opt/aCC/lbin/ecom

Open in new window

Who is Participating?
shanikawmConnect With a Mentor Author Commented:
I think the problem is HP-UX doesn't give c++ compiler for free. I download a evaluation version from hp site and installed. Now it's working. But it's only for 60 days.

I'm going to install gcc now.

Earliar /opt/aCC/lbin/ecom -help was giving same error message.

Now it says

/opt/aCC/lbin/ecom -help
Command-line error #2571: invalid option: -help

1 catastrophic error detected in this compilation.
Compilation terminated.


/opt/aCC/lbin/ecom -v
Edison Design Group C/C++ Front End, version 4.1 (Nov 26 2009 22:07:43)
Copyright 1988-2009 Edison Design Group, Inc.
trinitrotolueneConnect With a Mentor Director - Software EngineeringCommented:
here's a reference to a similar problem


looks like it could be due to a security application running ...
shanikawmAuthor Commented:
I coudn't find any such applications  :-(
sarabandeConnect With a Mentor Commented:
try to start ecom from shell

    /opt/aCC/lbin/ecom -help

do you get same error message?

how did you login? from remote?

shanikawmAuthor Commented:
Yes. I should buy the compiler
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.