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

Posted on 2011-02-14
Last Modified: 2013-12-06
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

Question by:shanikawm
  • 3
LVL 12

Assisted Solution

trinitrotoluene earned 250 total points
ID: 34894179
here's a reference to a similar problem

looks like it could be due to a security application running ...

Author Comment

ID: 34894350
I coudn't find any such applications  :-(
LVL 33

Assisted Solution

sarabande earned 250 total points
ID: 34895082
try to start ecom from shell

    /opt/aCC/lbin/ecom -help

do you get same error message?

how did you login? from remote?


Accepted Solution

shanikawm earned 0 total points
ID: 34895348
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.

Author Closing Comment

ID: 35187533
Yes. I should buy the compiler

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. Please see for the updated article. It is avail…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now