Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2011-02-14
5
Medium Priority
?
1,607 Views
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

Stop.
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

0
Comment
Question by:shanikawm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 12

Assisted Solution

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

http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1297747571221+28353475&threadId=1369959

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

Author Comment

by:shanikawm
ID: 34894350
I coudn't find any such applications  :-(
0
 
LVL 35

Assisted Solution

by:sarabande
sarabande earned 1000 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?

Sara
0
 
LVL 8

Accepted Solution

by:
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.


AND


/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.
0
 
LVL 8

Author Closing Comment

by:shanikawm
ID: 35187533
Yes. I should buy the compiler
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses

618 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