LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-26-2014, 11:41 PM   #1
hjoshuaj
LQ Newbie
 
Registered: Mar 2014
Posts: 2

Rep: Reputation: Disabled
Compiled program not showing up as compiled and not able to run.


I recently had to reinstall ubuntu and now when I go to where my programs are in the command line they will not run. Normally once ls shows the list they are a different color to mark that it is a program. It does not even do that. It does show a different color for the files, just not for the programs. Also, these programs ran fine before and I just copied everything onto a hard drive and then put it back. So when I do ./program it says bash: ./program: Permission denied. Any help would be greatly appreciated. Also, how do I get a.out? Thanks
 
Old 03-27-2014, 12:10 AM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,254

Rep: Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686
So what is the output of the following:
Code:
$ ls -l program
My guess would be that your reinstall of Ubuntu has given you a different UID from the one on the old files.
 
Old 03-27-2014, 06:43 AM   #3
hjoshuaj
LQ Newbie
 
Registered: Mar 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
ls -l translate
-rw------- 1 hjoshuaj hjoshuaj 12002 May 14 2013 translate
 
Old 03-27-2014, 06:49 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,129

Rep: Reputation: 2271Reputation: 2271Reputation: 2271Reputation: 2271Reputation: 2271Reputation: 2271Reputation: 2271Reputation: 2271Reputation: 2271Reputation: 2271Reputation: 2271
there is no execute flag, so try chmod +x translate and execute again
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] C++ program compiled in Fedora 14 do not run vonelli Linux - Newbie 10 02-03-2011 01:15 PM
Java application compiled successful, but no data showing. 8Blktops Programming 4 06-12-2009 01:54 PM
Can't Run the program after compiled yunton Programming 4 04-03-2009 02:05 AM
Eclipse / Java - How do I run a compiled program jun_tuko Programming 2 10-14-2006 06:39 PM
how to run C++ compiled program legend1079 Linux - Newbie 2 03-20-2004 07:40 AM


All times are GMT -5. The time now is 08:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration