LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 06-13-2009, 01:03 PM   #1
tomekdd
LQ Newbie
 
Registered: Aug 2008
Location: Poland
Distribution: Slackware
Posts: 7

Rep: Reputation: 0
Problems with creating new packages via makepkg


I've installed Slackware64 current recently and I am not able to resolve problem with making new packages via makepkg.

Lets suppose I've installed some lib in /tmp/some_lib.
Now, from /some_lib directory I type
Code:
makekpg ../some_lib.tgz
and I get an error : "gzip compression utility not found in $PATH".

Any ideas how to fix it? I've checked /etc/profile and global paths seems to be set correctly and of course gzip package is installed.

Thanks in advance.
 
Old 06-13-2009, 02:17 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,195

Rep: Reputation: Disabled
You have to specify an absolute path to the name of the package you want to create.
Code:
../some_lib.tgz
This is not OK and can lead to all kind of mysterious error messages. This is an example of a correct name for a package:
Code:
/home/alien/some_lib-1.2.3.4-i486-1.tgz
Eric

Last edited by Alien Bob; 06-13-2009 at 03:14 PM. Reason: Use a correct name for a Slackware package
 
Old 06-13-2009, 03:16 PM   #3
tomekdd
LQ Newbie
 
Registered: Aug 2008
Location: Poland
Distribution: Slackware
Posts: 7

Original Poster
Rep: Reputation: 0
In this case there is no difference. I still get the same error message.
I planned to upgrade to the latest build but I've looked through the slack ChangeLog and there have not been any important changes which may refer to my problem applied. So probably problem has no connection with my build.
 
Old 06-13-2009, 04:39 PM   #4
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

Rep: Reputation: 68
Looks like you need to install gzip.
 
Old 06-14-2009, 02:16 AM   #5
tomekdd
LQ Newbie
 
Registered: Aug 2008
Location: Poland
Distribution: Slackware
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by XGizzmo View Post
Looks like you need to install gzip.
Look what I've written in my first message.

Quote:
Originally Posted by tomekdd View Post
I've checked /etc/profile and global paths seems to be set correctly and of course gzip package is installed.
 
Old 06-14-2009, 03:38 AM   #6
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 421

Rep: Reputation: 45
Please post the output of `gzip --version` and `echo $PATH` in root account.
 
Old 06-14-2009, 04:43 AM   #7
tomekdd
LQ Newbie
 
Registered: Aug 2008
Location: Poland
Distribution: Slackware
Posts: 7

Original Poster
Rep: Reputation: 0
gzip -V:
Code:
gzip 1.3.12
Copyright (C) 2007 Free Software Foundation, Inc.
Copyright (C) 1993 Jean-loup Gailly.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
and result of `echo $PATH`
Code:
/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin
 
Old 06-14-2009, 05:07 AM   #8
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 421

Rep: Reputation: 45
It's weird... I think it's these lines that echo the error message(in /sbin/makepkg):
Code:
  163 # Make sure external compression utility is available:
  164 case $EXTENSION in
  165 'tgz' | 'tar.gz' )
  166   if ! which gzip 1> /dev/null 2> /dev/null ; then
  167     echo "ERROR:  gzip compression utility not found in \$PATH."
  168     exit 3
  169   fi
  170   ;;
I think it could only fail on not founding gzip executable. But you have.... Please attach the output of `which gzip` in root.

Last edited by grissiom; 06-14-2009 at 05:08 AM. Reason: typo
 
Old 06-14-2009, 06:26 AM   #9
tomekdd
LQ Newbie
 
Registered: Aug 2008
Location: Poland
Distribution: Slackware
Posts: 7

Original Poster
Rep: Reputation: 0
`which gzip` tells that gzip is located in /bin/gzip

Last edited by tomekdd; 06-14-2009 at 06:28 AM.
 
Old 06-14-2009, 06:41 AM   #10
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 421

Rep: Reputation: 45
So I've no idea why makepkg fail.... ;(
 
Old 06-14-2009, 06:57 AM   #11
tomekdd
LQ Newbie
 
Registered: Aug 2008
Location: Poland
Distribution: Slackware
Posts: 7

Original Poster
Rep: Reputation: 0
Neither do I. I'll try to install the newest build, maybe it will help.

Thanks for everybody who participated in this thread.
 
Old 06-14-2009, 09:39 AM   #12
forum1793
Member
 
Registered: May 2008
Posts: 312

Rep: Reputation: 34
Quote:
Originally Posted by tomekdd View Post
Lets suppose I've installed some lib in /tmp/some_lib.
Now, from /some_lib directory I type
Code:
makekpg ../some_lib.tgz
and I get an error : "gzip compression utility not found in $PATH".
I'm not sure this is related to your problem but it seems like what you are suggesting is a recursion problem.

From you example, you are telling it to make a package from it's parent directory. In effect then you are telling it to create a package that will contain the package you want to create.

Try cd out of the directory and then create the package.

I've used many of the slackbuild scripts and with -12.2 and with the -currents (32 and 64) and haven't had any problems like you are discussing.
 
Old 06-14-2009, 12:39 PM   #13
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,373

Rep: Reputation: 164Reputation: 164
makepkg should be ran as root. You don't say how you ran makepkg, and /bin is not in a user's path. See this thread I was involved in when learning to use makepkg. Maybe something in there may help.
 
Old 06-15-2009, 06:27 AM   #14
flat
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Rep: Reputation: 1
Do you have the 'which' package installed? It is used by 'makepkg' to check for the compression utilities.
 
Old 06-15-2009, 06:56 AM   #15
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 421

Rep: Reputation: 45
Quote:
Originally Posted by flat View Post
Do you have the 'which' package installed? It is used by 'makepkg' to check for the compression utilities.
tomekdd said "`which gzip` tells that gzip is located in /bin/gzip" so he/she has which installed...
 
  


Reply

Tags
gzip, path, slackware64


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
Creating own packages geletine *BSD 3 07-24-2006 01:17 PM
Creating static packages? Megamieuwsel Linux - Software 2 04-30-2004 02:17 AM
Creating packages... slackMeUp Slackware 9 02-09-2004 08:41 AM
creating slackware packages supenguin Slackware 1 10-20-2003 03:10 AM
creating packages (.tgz/.deb/.rpm) How from the source packages? l_9_l Linux - General 1 03-06-2002 06:03 PM


All times are GMT -5. The time now is 01:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration