LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   src2pkg install problem (https://www.linuxquestions.org/questions/slackware-14/src2pkg-install-problem-816819/)

gnashley 07-03-2010 08:35 AM

Do you have tar-1.13? I forgot to mention that you need tar-1.13 for pkgtools(installpkg) to work correctly. Not having it may cause improper installation of packages.

charlie_lab 07-03-2010 08:46 AM

Hello gnashley,

No, I have tar 1.20 installed on my system.

I have to look where tar-1.13 can be found.

Roelof

knudfl 07-03-2010 08:52 AM

You can just plug it out from a Slackware 'tar' package,

and copy the executable 'tar-1.13' to /bin/

..

charlie_lab 07-03-2010 08:54 AM

Oke,

So I can have both tar-1.13 and tar 1.20

Roelof

knudfl 07-03-2010 10:12 AM

Yes , that's how it works in Slackware.

The tar command will use 'tar' (version 1.2x)
Pkgtool, src2pkg etc. will use "/bin/tar-1.13"

..
EDIT : Sorry, it's /bin/tar-1.13
..

charlie_lab 07-03-2010 10:23 AM

Oke,

No problem.
I installed tar-1.13 and named it so.
But still the same problems.

Can it be the problem that libsentry is not installed.
And where can I find the right one.
I found one but it won't install because of readline problems.

Roelof

knudfl 07-03-2010 01:49 PM

The first thing happening, when you install src2pkg,
is this message : creating libsentry.
( Later comes : Creating tar-1.13.)

So actually, I don't know, what's going on.
I use src2pkg everywhere. CentOS, Fedora etc.
Always works.
..

charlie_lab 07-03-2010 02:44 PM

Oke,

And before it crearing libsentry I got this error message

Hopefully gnuashely knows what went wrong.

Roelof

gnashley 07-04-2010 11:52 PM

What is the exact error message you are getting? And when do you see it?(when you first run 'src2pkg --setup'??)

charlie_lab 07-05-2010 12:34 AM

Hoi,

Error message:
Code:

root:/# src2pkg --setup
  Notice - Creating src2pkg-helpers:
  src2pkg uses a shared library and a few programs
  when creating packages. These binaries will be
  compiled on your system for best compatibility,
  and installed. When done, src2pkg is ready for use.

  TEMP_DIR=/usr/src/src2pkg/builds/src2pkg-helpers
  Starting build in 5 seconds
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 580: -p: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 98: cd: /usr/src/src2pkg/builds/src2pkg-helpers: No such file or directory
Unpacking sources - OK
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 585: cd: /usr/src/src2pkg/builds/src2pkg-helpers/src2pkg-helpers-1.1: No such file or directory
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 586: cd: libsentry-0.6.9: No such file or directory
Creating libsentry - Ooops! Can't live without it...

I see this after i did installpkg src2pkg-2.2-noarch-3.tgz and then src2pkg --setup.

Roelof

Richard Cranium 07-05-2010 02:17 AM

Quote:

Originally Posted by charlie_lab (Post 4023964)
Hoi,

Error message:
Code:

root:/# src2pkg --setup
  Notice - Creating src2pkg-helpers:
  src2pkg uses a shared library and a few programs
  when creating packages. These binaries will be
  compiled on your system for best compatibility,
  and installed. When done, src2pkg is ready for use.

  TEMP_DIR=/usr/src/src2pkg/builds/src2pkg-helpers
  Starting build in 5 seconds
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 580: -p: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 98: cd: /usr/src/src2pkg/builds/src2pkg-helpers: No such file or directory
Unpacking sources - OK
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 585: cd: /usr/src/src2pkg/builds/src2pkg-helpers/src2pkg-helpers-1.1: No such file or directory
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 586: cd: libsentry-0.6.9: No such file or directory
Creating libsentry - Ooops! Can't live without it...

I see this after i did installpkg src2pkg-2.2-noarch-3.tgz and then src2pkg --setup.

Roelof

Well, the error on line 580 meant that the system couldn't find the mkdir program in any of:
  1. /bin
  2. /usr/bin
  3. /usr/local/bin
  4. /usr/libexec/src2pkg/bin

What do you get when you run the command "type mkdir" on your system?

charlie_lab 07-05-2010 03:08 AM

Hello,

type mkdir

mkdir is /tools/bin/mkdir

And my path is this :
/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin


So mkdir can be found within the path.

Roelof

gnashley 07-05-2010 08:58 AM

/tools/bin is a non-standard path which is not searched for. The routine in question ignores the PATH -there is a godd reason for that.

I'm sure that mkdir is supposed to be in /bin or /usr/bin on a POSIX system, so copying your version from /tools/bin to /bin and then linking it in /usr/bin should fix the problem.

You might do well to keep notes about what your are doing to finish your basic development and runtime installation for future use -you may still be missing some basic stuff since you've built from scratch.

charlie_lab 07-05-2010 10:49 AM

Oke,

Dit werkt nu alleen kan src2pkg --setup nog steeds libsentry niet vinden terwijl die gewoon in de temp dir te vinden is.

Roelof

gnashley 07-05-2010 02:31 PM

Hmmm, My Dutch is not too great, but you seem to be saying that some directory is not being found.After installing the src2pkg package, do you have the directory /usr/src/src2pkg/src2pkg-helpers ?
If so, you should be able to build src2pkg-helpers by opening a terminal and running the command 'src2pkg --setup' as root.


All times are GMT -5. The time now is 06:58 PM.