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.
Hello fellow Slackers, I am now using a virtual machine to create packages instead of on my system directly. I started with src2pkg but when I follow https://www.linuxquestions.org/quest...or-4175703841/, I get the following:
Quote:
/usr/src/src2pkg/src2pkg-helpers# patch -p1 < /tmp/src2pkg.patch
-su: patch: command not found
I have admin access, but is it missing something from the installation? Thank you for your time.
1) Because of the output of running src2pkg --setup and not figuring out where to go after this I opened the thread.
Code:
# src2pkg --setup
Notice - Creating src2pkg-helpers:
src2pkg uses a shared library and a few programs
when creating packages. For best compatibility,
these binaries will be compiled on your system.
They are then installed in a private directory.
When done, src2pkg is ready for use.
TEMP_DIR=/usr/src/src2pkg/builds/src2pkg-helpers
Starting build in 5 seconds
/usr/libexec/src2pkg/01-pre_process: line 789: gcc: command not found
/usr/libexec/src2pkg/01-pre_process: line 918: gcc: command not found
Unpacking sources - OK
Creating libsentry - Ooops! Can't live without it...
2) I usually use slackbuilds but to update packages already on slackbuilds.org, however the source code has been provided for the package I am trying to build. I am still learning these aspects of Slackware. I tried in the past building from source and have failed, so every couple of years I find myself revisiting this.
3) I didn't have patch installed, but I have installed it now. I ran the following as a result:
4)Now that I have installed patch, I get the correct output instead of nothing:
Code:
# command -v patch
/usr/bin/patch
Thanks for that command Didier Spaier. Never a dull moment with Slackware.
I reran src2pkg --setup but failed again with a slight change:
Code:
# src2pkg --setup
Notice - Creating src2pkg-helpers:
src2pkg uses a shared library and a few programs
when creating packages. For best compatibility,
these binaries will be compiled on your system.
They are then installed in a private directory.
When done, src2pkg is ready for use.
TEMP_DIR=/usr/src/src2pkg/builds/src2pkg-helpers
Starting build in 5 seconds
/usr/libexec/src2pkg/01-pre_process: line 789: gcc: command not found
/usr/libexec/src2pkg/01-pre_process: line 918: gcc: command not found
Unpacking sources - OK
patching file libsentry.c
Creating libsentry - Ooops! Can't live without it...
I can continue to use src2pkg but I am also open to finding ways that can better help me. Thank you both for the help and patience!
I have admin access, but is it missing something from the installation?
Yes, it seems as if your installation is missing a lot. You have already found out that you need the patch utility. Now you are suffering from the lack of the gcc compiler.
You will not be able to compile any program from source without a compiler.
Basically all slackbuild scripts from slackbuilds.org and other sources assume that you have a full install of Slackware. Trying to be smart and skip some packages during installation usually sooner or later will backfire on you.
In the mid 90s when I did my first Slackware installation I patiently answered questions about every package and carefully thought about what was really necessary. Among those packages there was something called "groff" which was some kind of text formatting program. I thought that I wouldn't be doing any text processing, the machine was intended for software development so I skipped that package. It later turned out that I was unable to read any man-pages on that machine...
Since then I have always done full Slackware installations, that is also the recommended way to install Slackware.
I agree with henca, my instincts are telling me something is wrong with your installation. If possible, I would reinstall Slackaware and make sure you do a full install of all packages.
I mentioned on my first post that I was installing it on my virtual machine, and I reinstalled the OS 3 times because I was finding basic programs missing. I thought I had nailed it on the third time. I'll get a new copy and verify the md5sum and report back. Thank you both!
The new installation from a new image seems to be working. I was able to install src2pkg!
I tried making the package but failed.
Code:
Found 'cmake' configuration - Configuring using:
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DLIB_SUFFIX=64 -DCMAKE_BUILD_TYPE=Release -DLOCALSTATE_INSTALL_DIR=/var -DSYSCONF_INSTALL_DIR=/etc
Skipping compile_source -
FAILED!! No INSTALL_LINE given.
I also tried using a slackbuild but also failed with the error,
Code:
autoreconf: export WARNINGS=
autoreconf: error: 'configure.ac' is required
I have read a few documents on how to compile from Source but I haven't yet figured out how to overcome the obstacles. I haven't being able to get it. If someone knows of something simple but with great explanations on how to learn this, I would appreciate it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.