LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   compiling source code (https://www.linuxquestions.org/questions/linux-newbie-8/compiling-source-code-4175583786/)

cmoore90638 07-04-2016 10:00 PM

compiling source code
 
I am trying to install sbo tools on slackware 14.1. I have extracted the file. I created a file in my home directory named sbo tools it has 4 files. They are file:///home/chuck/sbotools/README
file:///home/chuck/sbotools/sbotools.SlackBuild
file:///home/chuck/sbotools/sbotools.info
file:///home/chuck/sbotools/slack-desc
I change directory to sbotools and try ,/configure/on all these files and it tells me no such file. the folder shows in my home directory. What am I not thinking of any help would be appreciated. Thanks in advance

notKlaatu 07-05-2016 12:05 AM

First, you should read this:
https://slackbuilds.org/howto/

To summarise it for you, I will say that you have not completed all the steps of using a SlackBuild.

A SlackBuild package from Slackbuilds.org (the SBo of the "sbotools" name) contains only the scripts to *build* a software, NOT the software itself.

To get the software you want to install, you should either go to its SlackBuilds.org page (in this case: https://slackbuilds.org/repository/1...search=sbotool) and follow the URL under the Source Downloads: section, or do this:

Code:

$ cat /home/chuck/sbotools/sbotools.info | grep DOWNLOAD
and download the result.

Verify that you downloaded what you think you downloaded by comparing its checksum:

Code:

$ md5sum /home/chuck/sbotools/sbotools-X.Y.tar.gz
Place this downloaded file in the same directory as the other files that are members of the SlackBuild package, and run the SlackBuild script.

Code:

$ chmod +x /home/chuck/sbotools/sbotools.SlackBuild
$ su -c '/home/chuck/sbotools/sbotools.SlackBuild'

Once that is finished, you will find a freshly built installable package in your /tmp folder. Install it with 'installpkg':

Code:

$ su -c 'installpkg /tmp/sbotools*SBo*t?z'
This is how SlackBuilds work.

Honestly, you might want to give yourself some time to learn that system in its purest form (the form I just described here) before you let yourself graduate to a tool that does it all for you. That's just my opinion, of course, but you earn more Slack if you learn the technology before you learn the frontends.

malekmustaq 07-05-2016 11:08 AM

Quote:

Originally Posted by cmoore90638 (Post 5570554)
I am trying to install sbo tools on slackware 14.1. I have extracted the file. I created a file in my home directory named sbo tools it has 4 files. They are file:///home/chuck/sbotools/README
file:///home/chuck/sbotools/sbotools.SlackBuild
file:///home/chuck/sbotools/sbotools.info
file:///home/chuck/sbotools/slack-desc
I change directory to sbotools and try ,/configure/on all these files and it tells me no such file. the folder shows in my home directory. What am I not thinking of any help would be appreciated. Thanks in advance

First, take note that the file "sbotools.SlackBuild" is already a script for building the application, you do not need to manually issue the basic commands "configure" "make" "make install" because these commands are handled by the SlackBuild script itself. That script should have been enough to build if only the needed source folder was there. So, as advised above, go re-download all whatever the site folder has for that particular package.

When all files are ready inside the folder, as you did, just go into the folder and issue these commands:

Code:

chmod +x sbotools.SlackBuild
sudo ./sbotools.SlackBuild <here you need to wait until the script builds the package>

(then, usually the built package is placed to the /tmp folder, so you may install it now)

sudo /sbin/installpkg /tmp/sbotools*txz <or .tgz whatever is used>

Hope that helps. Good luck and enjoy!

m.m.

arodlinux 07-07-2016 04:18 PM

As root from your working directory.
Code:

chmod +x sbotools.SlackBuild
Code:

./sbotools.SlackBuild
Then

Code:

installpkg sbotools.SlackBuild
Your package probably will be created in /tmp therefore

Code:

installpkg /tmp/sbotools.SlackBuild


All times are GMT -5. The time now is 09:58 AM.