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've tried several times to make the SlackBuilds script executable but without success.
I've been refering to this page for help but somehow it's not working because I don't understand. http://slackbuilds.org/howto/
Code:
bash-4.2$ cd Downloads
bash-4.2$ ls
Purple Charger Ready to Slack.png pysolfc.tar.gz
PySolFC-2.0 Slackpapers_3D_(323).jpg
bash-4.2$ tar -xvf pysolfc.tar.gz
pysolfc/
pysolfc/doinst.sh
pysolfc/pysolfc.info
pysolfc/slack-desc
pysolfc/README
pysolfc/pysolfc.SlackBuild
bash-4.2$ su -
Password:
Newton's Little-Known Seventh Law:
A bird in the hand is safer than one overhead.
root@red:~# chmod +x pysolfc.SlackBuild
chmod: cannot access 'pysolfc.SlackBuild': No such file or directory
root@red:~# ./ pysolfc.SlackBuild
-su: ./: Is a directory
root@red:~#
All of the files from un-tarring are there in my directory.
I have the src as well in my directory.
How do I place it in the directory with the SlackBuilds script?
This is my first go at this and it's confusing.
What do I need to to?
It looks like you have not downloaded the source file
Quote:
PySolFC-2.0.tar.bz2
Download that and put it in the same dir as you second thumbnail. Then as root, in that dir, type ./ and press the tab key, and then press enter. The slackbuild should take off and run. The installable file will be in /tmp. Once the build finishes, cd to /tmp, and use installpkg to install the package. That is it.
bash-4.2$ cd /tmp
bash-4.2$ wget http://slackbuilds.org/slackbuilds/14.1/games/pysolfc.tar.gz
--2015-02-22 18:24:59-- http://slackbuilds.org/slackbuilds/14.1/games/pysolfc.tar.gz
Resolving slackbuilds.org (slackbuilds.org)... 208.94.238.115
Connecting to slackbuilds.org (slackbuilds.org)|208.94.238.115|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2747 (2.7K) [application/x-gzip]
Saving to: 'pysolfc.tar.gz.1'
100%[======================================>] 2,747 --.-K/s in 0.06s
2015-02-22 18:25:04 (42.8 KB/s) - 'pysolfc.tar.gz.1' saved [2747/2747]
bash-4.2$ tar xf pysolfc.tar.gz
bash-4.2$ wget http://downloads.sourceforge.net/pysolfc/PySolFC-2.0tar.bx2 -P pysolfc
--2015-02-22 18:26:14-- http://downloads.sourceforge.net/pysolfc/PySolFC-2.0tar.bx2
Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 216.34.181.59
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-02-22 18:26:23 ERROR 404: Not Found.
bash-4.2$ su -
Password:
I turned my air conditioner the other way around, and it got cold out.
The weatherman said "I don't understand it. I was supposed to be 80
degrees today," and I said "Oops."
In my house on the ceilings I have paintings of the rooms above... so
I never have to go upstairs.
I just bought a microwave fireplace... You can spend an evening in
front of it in only eight minutes.
-- Stephen Wright
root@red:~# cd /tmp/pysolfc
root@red:/tmp/pysolfc# ./pysolfc.SlackBuild
tar: /tmp/pysolfc/PySolFC-2.0.tar.bz2: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
root@red:/tmp/pysolfc#
the ifc py-sol is a self contained folder
double click the "PySolFC-2.0.tar.bz2" archive
your archive manager will open
extract and save the folder to the location you want it
( for ONLY YOU )
/home/YourUserName/bin/PysolIFC
system wide something like
/use/opt/PysloIFC
cd into the pysolifc folder and run
( as a normal user)
Code:
python pysol.py
now
you will likely want to make a "*.desktop " launcher
or shell script
or add a menu listing for it
or
just add the folder location to the system $PATH and just call it
and you WILL want to read the "README" file in the archive
there is ALSO in the folder a "setup.py" script
you can use that to "install" it
but no installing really is needed
or
if you really want there is a "Makefile"
that can be used to "? install ?" it
but "installing" is not really needed
It looks like you have not downloaded the source file
Download that and put it in the same dir as you second thumbnail. Then as root, in that dir, type ./ and press the tab key, and then press enter. The slackbuild should take off and run. The installable file will be in /tmp. Once the build finishes, cd to /tmp, and use installpkg to install the package. That is it.
Let us know how it goes.
Tried what you suggested-
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:
"That must be wonderful! I don't understand it at all."
root@redhatcat:~# ./pysolfc.SlackBuild
-su: ./pysolfc.SlackBuild: No such file or directory
root@redhatcat:~#
Clearly the pysolfc.SlackBuild is in my directory "ls" listed it-
I also downloaded the PySolFC-2.0tar.bz2 and put it in the Downloads/pysolfc directory.
the ifc py-sol is a self contained folder
double click the "PySolFC-2.0.tar.bz2" archive
your archive manager will open
extract and save the folder to the location you want it
( for ONLY YOU )
/home/YourUserName/bin/PysolIFC
system wide something like
/use/opt/PysloIFC
cd into the pysolifc folder and run
( as a normal user)
Code:
python pysol.py
now
you will likely want to make a "*.desktop " launcher
or shell script
or add a menu listing for it
or
just add the folder location to the system $PATH and just call it
and you WILL want to read the "README" file in the archive
there is ALSO in the folder a "setup.py" script
you can use that to "install" it
but no installing really is needed
or
if you really want there is a "Makefile"
that can be used to "? install ?" it
but "installing" is not really needed
I don't have a archive manager so I un-tarred PySolFC-2.0 tar.gz than ran python pysol.py.
Upon doing so the card game launched. But I'm not sure how to make a menu listing for it.
Not good at that tried it before and couldn't get it correctly done.
I found the file "setup.py" Greek to me.
The ReadMe files says to do what you have already taught me by going to the src file and execute 'python pysol.py'
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:
"That must be wonderful! I don't understand it at all."
root@redhatcat:~# ./pysolfc.SlackBuild
-su: ./pysolfc.SlackBuild: No such file or directory
root@redhatcat:~#
Clearly the pysolfc.SlackBuild is in my directory "ls" listed it-
I also downloaded the PySolFC-2.0tar.bz2 and put it in the Downloads/pysolfc directory.
After you ran "su -", you are no longer in the same directory.
Code:
smedlap@smedlap:~$ cd Downloads/
smedlap@smedlap:~/Downloads$ pwd
/home/smedlap/Downloads
smedlap@smedlap:~/Downloads$ su -
Password:
root@smedlap:~# pwd
/root
root@smedlap:~#
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.