LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-26-2012, 03:14 PM   #1
froylan
LQ Newbie
 
Registered: Jul 2012
Location: texas
Distribution: ubuntu 12.04 LTS presise pangolin
Posts: 22

Rep: Reputation: Disabled
Question cant make a file executable by terminal typing "chmod +x layerfx.py"


when i try to make a file executable it ays "no such file or directory"even if it is right in the home folder
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2012-07-26 14:13:43.jpg
Views:	11
Size:	88.8 KB
ID:	10217  
 
Old 07-26-2012, 03:33 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
THis is due to your path variable, when you just type in a filename it searches for it in your $PATH environment variable. In order to modify something that is not in your $PATH variable, you just need to add the path to the file. If its in the same directory just add a "./" before the filename.
 
2 members found this post helpful.
Old 07-26-2012, 03:36 PM   #3
froylan
LQ Newbie
 
Registered: Jul 2012
Location: texas
Distribution: ubuntu 12.04 LTS presise pangolin
Posts: 22

Original Poster
Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by Kustom42 View Post
THis is due to your path variable, when you just type in a filename it searches for it in your $PATH environment variable. In order to modify something that is not in your $PATH variable, you just need to add the path to the file. If its in the same directory just add a "./" before the filename.
thank you so much,that realy helped
 
Old 07-26-2012, 03:41 PM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Yep, might be worth it to look at your $PATH as well.

Code:
echo $PATH
You can also add additional folders to this from within your .bashrc file contained in your home directory as follows:

Code:
export PATH=$PATH:/home/froylan/downloads:/usr/local/bin/scripts
 
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
kernel make error: "vmlinux.o no such file ..." and make -d "Reaping losing ..." micscherer Linux - Kernel 3 06-12-2012 08:29 AM
[SOLVED] installing .gz file..: "make: Error 127 chmod 755 " Ubunoob001 Linux - Newbie 16 10-11-2010 02:11 PM
Logged in as "root"/Fedora 8 but get "Operation not permitted" when using "chmod etc gosunlee Linux - Newbie 7 02-10-2008 06:56 AM
How to start KDE automaticlly without typing "startx" then "startkde" Jonescity Slackware 8 10-29-2004 10:32 PM
i just finished typing "./configure" and "make" in mplayer directory... kublador Linux - General 4 02-22-2003 04:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:05 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