LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 12:54 PM   #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, 12:58 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,919

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
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


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


All times are GMT -5. The time now is 03:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration