LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   making script executable; getting no such file or directory (https://www.linuxquestions.org/questions/slackware-14/making-script-executable%3B-getting-no-such-file-or-directory-674948/)

madwida 10-07-2008 09:48 PM

making script executable; getting no such file or directory
 
Hi

I am trying to install wicd via Slackbuilds.org. I have followed the how to and downloaded the tar.gz files to /home. When I try and make the script executable this is the output:

bash-3.1# chmod +x wicd.SlackBuild
chmod: cannot access `wicd.SlackBuild': No such file or directory

This is what the structure of the directory looks like:

file:///home/christian/wicd/doinst.sh
file:///home/christian/wicd/migration_14-15.sh
file:///home/christian/wicd/README
file:///home/christian/wicd/slack-desc
file:///home/christian/wicd/wicd-1.5.3.tar.gz
file:///home/christian/wicd/wicd.info
file:///home/christian/wicd/wicd.SlackBuild

I think I must be missing a step.

I should say that I am searching for answers before asking--as well as spending a lot of time trying over and over on my own--and thus really appreciate the help when I ask. As I learn this stuff it seems that I always miss some crucial step that might be obvious to someone more experienced.

Thanks

johnson_steve 10-07-2008 09:54 PM

are you in the /home/christian/wicd/ directory when you issue that command?
open a new terminal window and try this:
Code:

cd wicd
chmod 755 wicd.SlackBuild


madwida 10-08-2008 08:29 AM

Quote:

Originally Posted by johnson_steve (Post 3303621)
are you in the /home/christian/wicd/ directory when you issue that command?
open a new terminal window and try this:
Code:

cd wicd
chmod 755 wicd.SlackBuild


Hi

Thanks a lot--that did it! What does the 755 mean and how did you know to put that in the command?

Now all I have to do is figure out why my wireless is still not working. But I am getting closer.

Best wishes

johnson_steve 10-08-2008 08:57 AM

755 = everyone can read and execute but only the owner can write to the file. I know you can do it the new way with the letters but I prefer the old school Unix numbers system. the fist digit is for the owner the second is for the group and the third is for everyone else.

4 = can read file.
2 = can write file.
1 = can execute file. (or view contents if it's a directory.)

we want the owner of the file to be able to read, write and execute: 4+2+1=7. we want everyone else to be able to read and execute, but not write to the file: 4+1=5. so we get 755. the most common numbers I use are 755, 777, 644 and 666 (which means anyone can write to the file so it deserves this 'evil' number.)

Glad I could help. :) post a thread about your wifi; be sure to include as much info as you can including the output of 'lspci' 'lsusb' 'lsmod' the model of your card and distro.

madwida 10-08-2008 09:19 AM

Thanks for the info. It's fun learning this stuff!

As for "post a thread about your wifi; be sure to include as much info as you can including the output of 'lspci' 'lsusb' 'lsmod' the model of your card and distro."

Will do. I am on my way out of the country and so will likely wait till I get back next week as I won't be able to work on it again. In the meantime, thanks again.


All times are GMT -5. The time now is 12:48 AM.