SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm in the directory with the "pysolfc.SlackBuild" script.
Code:
bash-4.2$ cd Downloads/pysolfc
bash-4.2$ ls
PySolFC-2.0 README pysolfc.SlackBuild slack-desc
PySolFC-2.0.tar.bz2 doinst.sh pysolfc.info
bash-4.2$ su -
Password:
root@red:~# ./pysolfc.SlackBuild
-su: ./pysolfc.SlackBuild: No such file or directory
root@red:~#
Why is the script not executing?
-::-I also tried coping the script and put it in my Home directory made it executable and it still won't run.-::-
I'm in the directory with the "pysolfc.SlackBuild" script.
Actually you are not in the directory! The "su -" also switches into root's home dir. Try "copying and pasting" my suggested commands from 14 posts back, one at a time. They work. I tested them before posting.
Hint: on sourceforge.net you need to use a browser for downloading files.
No you don't. I download from SF via the terminal all the time. Try copy and pasting the wget command I gave him yourself.
On his first attempt after my suggestion he successfully downloaded the file as you can see from his output. His problem after that (as you noted) was that he never ran the SlackBuild.
On the next try he obviously didn't copy and past as there is a "." missing in the source package name. If he copied and pasted he would solved this a very long time ago.
Actually you are not in the directory! The "su -" also switches into root's home dir. Try "copying and pasting" my suggested commands from 14 posts back, one at a time. They work. I tested them before posting.
I freaking told him/her/it that a couple of posts ago. With an example, no less.
I freaking told him/her/it that a couple of posts ago. With an example, no less.
Yep, you did. I also told the OP how to do the entire process, with step by step (already tested) instructions that could be copy and pasted in the 4th posting.
However, no point in any of us getting upset. The user is clearly new to much of this and it is easy to forget how simple it is to make mistakes when you are first learning about things. I suspect your message was glanced over or not understood. "su -" switching to the root home directory is non-obvious if you don't understand the command.
I also suspect that the user may not have realised how to paste to a terminal (select text, then middle click or Ctrl+c to copy the text and Ctrl+Shift+v to past into a terminal), so typed the entire thing. In fact, I am almost certain of this as "PySolFC-2.0tar.bz2" is mentioned twice in his/her posts, rather than "PySolFC-2.0.tar.bz2" (note the missing ".").
On the plus side, making mistakes and struggling over things is how you learn. I suspect that when the user gets to the end of this they will have much better understanding then when they begun.
@John VV: A nice a attempt at help but I think you are actually confusing the situation, more than assisting in this case. You are trying to teach a completely different method when the user has not yet grasped the first. In addition, understanding how to run a SlackBuild will be more helpful to the user at this stage in their development, as it opens up the world of www.slackbuilds.org and hence a variety of software that can be easily managed under the packaging system.
Handling packages outside of the package manager and making your own .desktop files is clearly a more advanced topic and something that should be considered only after more of the basics are understood.
@Ztcoracat: Go back to the steps from my fourth posting and try again:
1. Switch to the /tmp directory (it is a nice short, predictable path to work from for stuff like this)
Code:
cd /tmp
2. Fetch the SlackBuild package (copy the following line by selecting it and issuing Ctrl+c. In most terminals you can then paste it with Ctrl+Shift+v):
3. If there are no obvious errors (read the output carefully. A mention of a 404 is an error), then issue the following to extract the package verbosely:
Code:
tar xvf pysolfc.tar.gz
4. Now issue the following to download the source package into the newly created "pysolfc" directory (again, you should copy and paste the command and watch for errors as explained above):
5. Now you need to become root. The following command switches to a root login shell. This means that you will have all of roots environment variables setup and switch into root's home directory (/root).
Code:
su -
6. If you want, you can confirm that you are now in root's home directory by issuing the "print working directory" command (you should see the output "/root"):
Code:
pwd
7. Now switch to the directory where you extracted the SlackBuild and downloaded the source package.
Code:
cd /tmp/pysolfc
8. Now you can issue the command to run the SlackBuild (as you are in the correct directory, have the source package in place [correctly named] and have switched to root user):
Code:
./pysolfc.SlackBuild
9. If (and only if) that command completed successfully, enter the following to install the resultant package:
Code:
installpkg /tmp/pysolfc-2.0-x86_64-1_SBo.tgz
10. Finally exit the root environment.
Code:
exit
An extra tip. Stop at the first error and report back here with the error message you see and details of how far you got.
There was something I was not aware of; and a very special thanks to Mr. Frankbell , who explained to me,
there is a difference between using 'su' and using 'su -'.
Once I typed su - I included the full path to /home/zebracat/Downloads/pysolfc/.
I un-tarred the /PySolFC-2.0.tar.bz2 and wasn't aware that it should not of been un-tarred to begin with.
I was able to run the script as root with the full path. Upon running the script the pkg;" pysolfc-2.0-x86_64-1_SBo.tgz" was created and placed in my tmp directory.
-:-Amazing how one small unknown detail can wreck getting something installed.-:-
Yep, you did. I also told the OP how to do the entire process, with step by step (already tested) instructions that could be copy and pasted in the 4th posting.
However, no point in any of us getting upset. The user is clearly new to much of this and it is easy to forget how simple it is to make mistakes when you are first learning about things. I suspect your message was glanced over or not understood. "su -" switching to the root home directory is non-obvious if you don't understand the command.
I also suspect that the user may not have realised how to paste to a terminal (select text, then middle click or Ctrl+c to copy the text and Ctrl+Shift+v to past into a terminal), so typed the entire thing. In fact, I am almost certain of this as "PySolFC-2.0tar.bz2" is mentioned twice in his/her posts, rather than "PySolFC-2.0.tar.bz2" (note the missing ".").
On the plus side, making mistakes and struggling over things is how you learn. I suspect that when the user gets to the end of this they will have much better understanding then when they begun.
Until today, I wasn't aware that I could cut and paste in the terminal.
Another thing that was holding me back and impeded what I was trying to install thus making typing errors by typing the entire string or cmd out:-
On the plus side, making mistakes and struggling over things is how you learn. I suspect that when the user gets to the end of this they will have much better understanding then when they begun.
Yup, and that's what happened in my case.
Things are clear now but where a confusing mess going through the 'struggling part'.
Another thing that was holding me back and impeded what I was trying to install thus making typing errors by typing the entire string or cmd out:-
Possibly another thing you aren't/weren't aware of... When typing commands and file/folders in the terminal, you can hit the tab button to autocomplete the file/folder. If nothing is returned, you can hit it a second time and it will show all existing options for what you've currently typed, then you can do a couple more letters to make it find what you're wanting it to.
Possibly another thing you aren't/weren't aware of... When typing commands and file/folders in the terminal, you can hit the tab button to autocomplete the file/folder. If nothing is returned, you can hit it a second time and it will show all existing options for what you've currently typed, then you can do a couple more letters to make it find what you're wanting it to.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.