LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 09-02-2014, 11:54 AM   #1
richard7893
LQ Newbie
 
Registered: Sep 2014
Posts: 1

Rep: Reputation: Disabled
executable program file in linux


I have tried to compile an executable program using fortran g77. When I compile the program this message appears:

g77 -c -O2 mlem1.f
g77 -c -O2 ml_subs1.f
g77 -o mlem1 -O2 mlem1.o ml_subs1.o
rm -f /home/richard7893/bin/mlem1
mv mlem1 /home/richard7893/bin/mlem1
mv: cannot move `mlem1' to `/home/richard7893/bin/mlem1': No such file or directory
make: *** [mlem1] Error 1


I find the executable in the current directory that I am woking in however.

Must I create a bin directory, so this error message does not appear? The executable program can run despite the error message
 
Old 09-02-2014, 11:58 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by richard7893 View Post
I have tried to compile an executable program using fortran g77. When I compile the program this message appears:

g77 -c -O2 mlem1.f
g77 -c -O2 ml_subs1.f
g77 -o mlem1 -O2 mlem1.o ml_subs1.o
rm -f /home/richard7893/bin/mlem1
mv mlem1 /home/richard7893/bin/mlem1
mv: cannot move `mlem1' to `/home/richard7893/bin/mlem1': No such file or directory
make: *** [mlem1] Error 1


I find the executable in the current directory that I am woking in however.

Must I create a bin directory, so this error message does not appear? The executable program can run despite the error message
You only need to create a directory if you WANT a directory. If the /home/richard7893/bin directory isn't there, then you can either create it, or move the file to a different location that DOES exist.
 
1 members found this post helpful.
  


Reply



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] accessing n using the executable in C program linux rohaanembedded Programming 22 05-16-2013 09:03 AM
[SOLVED] How would I convert an arbitrary binary file into a Linux executable file? ootawata Programming 8 02-21-2010 11:21 PM
how do i use a linux executable file baronobeefdip Linux - Newbie 5 10-30-2009 09:23 AM
Executable file on Linux Arcane Linux - Software 2 05-29-2006 06:35 PM
Linux Executable File Help (created from a .c file) MattG1981 Linux - Newbie 7 06-06-2004 04:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:24 PM.

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
Open Source Consulting | Domain Registration