Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 242
  • Last Modified:

Regarding compilation

CC t2.C
/usr/ccs/bin/ld: Can't create a.out
/usr/ccs/bin/ld: Permission denied

I am using HPUX 11.0.It was compiling last week.Dont know why its not working now
1 Solution
you're not allowed to write to a.out for some reason.    Maybe it has its permission bits cleared or is owned by somebody else?

Try "rm a.out" and if that doesnt work,  "ls -l a.out" to see what its r/w permissions are and who owns it.

Kent OlsenData Warehouse Architect / DBACommented:

It may also be a permissions issue with the directory, but under the circumstances, I think that grg99's correct.  a.out is owned by someone else or is write protected.

You are trying to compile in a directory for which you are not the owner and where you don't have permissions to write!
So, there are two ways in which you can resolve this:
1. Give permissions to yourself by using the command: "chmod -R o+w .."
2. Go to your home directory by the command: "cd" and then compile by giving the complete path for the t2.c file.

pigeon7778Author Commented:
Thanks a lot
I am curious to know, what had happened and how it got resolved?


Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now