LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-22-2015, 03:48 PM   #1
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Install pysolfc.tar.gz


Hi:

I'm trying to install pysolfc which is basically solitaire,cards,pysol,mahjongg,card,game,pysolfc, and freecell.
http://slackbuilds.org/repository/14.../?search=pysol

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?
Attached Thumbnails
Click image for larger version

Name:	Screenshot - 02222015 - 04:43:38 PM.png
Views:	27
Size:	85.4 KB
ID:	17638   Click image for larger version

Name:	Screenshot - 02222015 - 04:41:15 PM.png
Views:	24
Size:	68.8 KB
ID:	17639  
 
Old 02-22-2015, 04:04 PM   #2
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
You have a catalog of errors there!
  • You are in the wrong directory, hence chmod does not find "pysolfc.SlackBuild"
  • chmod'ing isn't needed anyway as "pysolfc.SlackBuild" is already executable
  • You haven't placed "PySolFC-2.0.tar.bz2" in the extracted "pysolfc" directory
  • The command should be "./pysolfc.SlackBuild" not "./ pysolfc.SlackBuild"

Last edited by ruario; 02-22-2015 at 04:29 PM. Reason: clarified the list of problems
 
Old 02-22-2015, 04:11 PM   #3
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,217

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
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.

Let us know how it goes.

Last edited by camorri; 02-22-2015 at 04:12 PM.
 
Old 02-22-2015, 04:12 PM   #4
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
Here are all the steps. You can copy and paste them one by one one, just remove "$" or "#" off the front (as they represent the shell prompt):

Code:
$ cd /tmp
$ wget http://slackbuilds.org/slackbuilds/14.1/games/pysolfc.tar.gz
$ tar xf pysolfc.tar.gz
$ wget http://downloads.sourceforge.net/pysolfc/PySolFC-2.0.tar.bz2 -P pysolfc
$ su -
# cd /tmp/pysolfc
# ./pysolfc.SlackBuild
# installpkg /tmp/pysolfc-2.0-x86_64-1_SBo.tgz
# exit

Last edited by ruario; 02-22-2015 at 04:17 PM.
 
Old 02-22-2015, 04:49 PM   #5
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
I tried but for some reason the file isn't being found-

Code:
bash-4.2$ cd /tmp
bash-4.2$ wget http://slackbuilds.org/slackbuilds/14.1/games/pysolfc.tar.gz
--2015-02-22 17:38:28--  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'

100%[======================================>] 2,747       --.-K/s   in 0.03s   

2015-02-22 17:38:34 (82.6 KB/s) - 'pysolfc.tar.gz' saved [2747/2747]

bash-4.2$ tar xf pysolfc.tar.gz
bash-4.2$ cd pysolfc
bash-4.2$ wget http://downloads.sourceforge.net/pysolfc/PySolFC-2.0.tar.bz2 -P pysolfc
--2015-02-22 17:40:01--  http://downloads.sourceforge.net/pysolfc/PySolFC-2.0.tar.bz2
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... 301 Moved Permanently
Location: http://downloads.sourceforge.net/project/pysolfc/PySolFC/PySolFC-2.0/PySolFC-2.0.tar.bz2 [following]
--2015-02-22 17:40:02--  http://downloads.sourceforge.net/project/pysolfc/PySolFC/PySolFC-2.0/PySolFC-2.0.tar.bz2
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://softlayer-dal.dl.sourceforge.net/project/pysolfc/PySolFC/PySolFC-2.0/PySolFC-2.0.tar.bz2 [following]
--2015-02-22 17:40:03--  http://softlayer-dal.dl.sourceforge.net/project/pysolfc/PySolFC/PySolFC-2.0/PySolFC-2.0.tar.bz2
Resolving softlayer-dal.dl.sourceforge.net (softlayer-dal.dl.sourceforge.net)... 67.228.157.232
Connecting to softlayer-dal.dl.sourceforge.net (softlayer-dal.dl.sourceforge.net)|67.228.157.232|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4208776 (4.0M) [application/octet-stream]
Saving to: 'pysolfc/PySolFC-2.0.tar.bz2'

100%[======================================>] 4,208,776    115KB/s   in 35s    

2015-02-22 17:40:41 (116 KB/s) - 'pysolfc/PySolFC-2.0.tar.bz2' saved [4208776/4208776]

bash-4.2$ cd /tmp/pysolfc
bash-4.2$ su -
Password: 

The amount of time between slipping on the peel and landing on the
pavement is precisely 1 bananosecond.

root@red:~# installpkg /tmp/pysolfc-2.0-x86_64-1_SBo.tgz
Cannot install /tmp/pysolfc-2.0-x86_64-1_SBo.tgz:  file not found
 
Old 02-22-2015, 05:01 PM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,059

Rep: Reputation: Disabled
You missed that step:
Code:
./pysolfc.SlackBuild
 
Old 02-22-2015, 05:29 PM   #7
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Gave it another try-

Code:
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#
 
Old 02-22-2015, 05:38 PM   #8
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,059

Rep: Reputation: Disabled
Do you really care to read? This:

HTTP request sent, awaiting response... 404 Not Found
2015-02-22 18:26:23 ERROR 404: Not Found.

Means that the file was could not be downloaded, that's why you get this message:

tar: /tmp/pysolfc/PySolFC-2.0.tar.bz2: Cannot open: No such file or directory

You should really try to understand what each command is supposed to do, and what went wrong case occurring.

Hint: on sourceforge.net you need to use a browser for downloading files. Go there:
http://sourceforge.net/projects/pysolfc/files/

Last edited by Didier Spaier; 02-22-2015 at 05:54 PM.
 
Old 02-22-2015, 06:51 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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
 
Old 02-22-2015, 06:58 PM   #10
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by camorri View Post
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.
 
Old 02-22-2015, 07:14 PM   #11
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,662

Rep: Reputation: 1785Reputation: 1785Reputation: 1785Reputation: 1785Reputation: 1785Reputation: 1785Reputation: 1785Reputation: 1785Reputation: 1785Reputation: 1785Reputation: 1785
Please read our HOWTO
 
Old 02-22-2015, 07:37 PM   #12
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by John VV View Post
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'
 
Old 02-22-2015, 08:14 PM   #13
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by Ztcoracat View Post
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.
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:~#
 
Old 02-23-2015, 02:55 PM   #14
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
i use KDE but a "desktop " file is a desktop file

make sure that the pysol folder in tin the system $PATH
there is a .desktop launcher already in the archive "PySolFC-2.0/data/pysol.desktop"

The setup.sh script should have placed it in
/use/share/applications
if not
edit it for your environment and copy it to "/use/share/applications"

i have pysol installed on a shared drive so the locations WILL be different for you

Code:
[Desktop Entry]
GenericName=PySolFC
Name=PySol Fan Club Edition
Exec=/DATA/GAMES/PySolFC-2.0/pysol.py
Terminal=false
Type=Application
Categories=Game;CardGame;Game;
Icon=/DATA/GAMES/PySolFC-2.0/data/pysol.xpm
 
Old 02-23-2015, 08:23 PM   #15
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by Richard Cranium View Post
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:~#
Thank You.

So as root do I need to change directory again in order to run the SlackBuild script?
 
  


Reply



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
How to install tar.gz & tar.bz2 file on Linux min Krishnendu Linux Mint 2 07-16-2009 06:52 AM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM
How to INSTALL softwares with *.tar.gz or *.tar.tgz extension On SLACKWARE 10.2 DdOs Linux - Software 4 03-20-2006 01:54 AM
how to install .tar.bz and src.rpms and tar.gz files gadekishore Linux - Software 1 10-12-2005 08:09 PM

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

All times are GMT -5. The time now is 01:46 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
Open Source Consulting | Domain Registration