LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 01-12-2014, 07:31 PM   #1
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 326

Rep: Reputation: 56
Dependencies for installing slackbuilds on barebones linode


Hi all, I'm trying to set up a linode server with Slackware64 14.1, and I'm having trouble installing a slackbuild. If it matters, I'm attempting to install nginx.

First it wasn't finding a C compiler. I figured out what those dependencies were and got them installed via slackpkg. But, now it's failing with this:

Code:
checking for uint64_t ... uint64_t not found u_int64_t not found
./configure: error: can not define uint64_t
I'm guessing I'm just missing another dependency. What's the easiest way to update the system with whatever is needed to install slackbuilds?

Thanks!
 
Old 01-12-2014, 08:25 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,576

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
slackpkg reinstall slackware64
 
Old 01-12-2014, 10:01 PM   #3
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 326

Original Poster
Rep: Reputation: 56
Thanks for the tip! Unfortunately the above error persists

Anyone know what package defines uint64_t?
 
Old 01-13-2014, 12:13 AM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,576

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
See here: http://forum.nginx.org/read.php?2,25...005#msg-164005
 
Old 01-13-2014, 12:24 AM   #5
dhabyx
LQ Newbie
 
Registered: Aug 2012
Distribution: Slackware
Posts: 10

Rep: Reputation: Disabled
Hi mattca

uint64_t is an integer type in C, defined in stdint.h, this file comes in glibc package.

In my slackware64 with multilib is in the glibc-x86_64-7alien 2.17_multilib package, in a pure Slackware64, it should be in glibc-2.17-x86_64-7

Maybe not are now installed the development libraries.

http://slackware.cs.utah.edu/pub/sla...slackware64/l/

Try with reinstall this package

slackpkg reinstall glibc

Update:
The link for the patch that Willysr has put in the previous post seems appropriate.

Last edited by dhabyx; 01-13-2014 at 12:31 AM.
 
Old 01-13-2014, 02:26 PM   #6
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 326

Original Poster
Rep: Reputation: 56
Thanks for the tips...

I wasn't able to apply the patch, I got "hunk failed" for each of the hunks in the patch. I tried applying it by manually editing the source files, and it looks like the source I have doesn't match up with the patch. This would make sense, as the patch is from (I think) 2010 and nginx 1.4.1 was released in 2013.

I also tried setting CFLAGS="" before running configure without success.

I'm actually a little confused as to why I'd need a patch to start out with, since I was able to install the same slackbuild on 2 different stock Slackware64 systems. They were normal installs though, not the stripped down version you get with Linode. So, I think I'm just missing some dependencies.

I do have glibc installed, but it's still not able to find uint64_t for some reason.

Any ideas how I can get a linode updated with the necessary dependencies?

Actually.... it looks like stdint.h exists on my system, *and* defines uint64_t. Any idea why nginx can't find it?

Code:
# grep "uint64" `find /usr/include/ -name "stdint.h"`
/usr/include/stdint.h:typedef unsigned long int uint64_t;
/usr/include/stdint.h:typedef unsigned long long int    uint64_t;
 
Old 01-13-2014, 03:00 PM   #7
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 326

Original Poster
Rep: Reputation: 56
After a closer look at objs/autoconf.err I see that it seems to be missing linux/limits.h:

Code:
checking for uint64_t

In file included from /usr/include/bits/posix1_lim.h:160:0,
                 from /usr/include/limits.h:144,
                 from /usr/lib64/gcc/x86_64-slackware-linux/4.8.2/include-fixed/limits.h:168,
                 from /usr/lib64/gcc/x86_64-slackware-linux/4.8.2/include-fixed/syslimits.h:7,
                 from /usr/lib64/gcc/x86_64-slackware-linux/4.8.2/include-fixed/limits.h:34,
                 from /usr/include/bits/socket.h:30,
                 from /usr/include/sys/socket.h:39,
                 from objs/autotest.c:4:
/usr/include/bits/local_lim.h:38:26: fatal error: linux/limits.h: No such file or directory
 #include <linux/limits.h>
                          ^
compilation terminated.
And I seem to have that file on my local machine:
Code:
$ find /usr/include/ -name "limits.h"
/usr/include/c++/4.8.2/tr1/limits.h
/usr/include/limits.h
/usr/include/linux/limits.h
but not the linode:
Code:
# find /usr/include/ -name "limits.h"
/usr/include/c++/4.8.2/tr1/limits.h
/usr/include/limits.h
Any idea what package contains it?
 
Old 01-13-2014, 03:06 PM   #8
dhabyx
LQ Newbie
 
Registered: Aug 2012
Distribution: Slackware
Posts: 10

Rep: Reputation: Disabled
On my slack:

Code:
$grep linux/limits.h /var/log/packages/*
/var/log/packages/kernel-headers-3.10.17-x86-3:usr/include/linux/limits.h
/var/log/packages/kernel-source-3.10.17-noarch-3:usr/src/linux-3.10.17/include/uapi/linux/limits.h
 
1 members found this post helpful.
Old 01-13-2014, 03:19 PM   #9
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 326

Original Poster
Rep: Reputation: 56
Yep it was the kernel headers that I needed!

Thanks for the help everyone
 
Old 01-14-2014, 09:51 AM   #10
Gerardo Zamudio
Member
 
Registered: Jan 2011
Distribution: Slackware
Posts: 30

Rep: Reputation: 10
Quote:
Originally Posted by mattca View Post
Yep it was the kernel headers that I needed!

Thanks for the help everyone
I've also just recently set up my Slackware Linode and noticed they leave out a lot of packages. In order to get to a full Slack install I just did

Code:
root@hades:~ # slackpkg install a/*
And so on for every package set (xap, l, n, etc). After doing this, I haven't experienced any problems compiling or running software. My /var/log/packages shows around 620 packages I believe, so that's a good guideline if you want to get up to a full Slackware install.
 
Old 01-14-2014, 12:15 PM   #11
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 326

Original Poster
Rep: Reputation: 56
In case it would be helpful, here's a list of the packages I needed to install:

- gcc-4.8.2-x86_64-1
- gcc-g++-4.8.2-x86_64-1
- glibc-2.17-x86_64-7
- glibc-solibs-2.17-x86_64-7
- libmpc-0.8.2-x86_64-2
- libxml2-2.9.1-x86_64-1
- libxslt-1.1.28-x86_64-1
- kernel-headers-3.10.17-x86-3

These will allow you to install the nginx slackbuild.
 
1 members found this post helpful.
Old 01-14-2014, 02:19 PM   #12
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,460

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
if you got a slackware64 minimal install and you don't want to get mad with dependencies, maybe the easiest way out is to issue a
Code:
slackpkg install slackware64
to switch to a full install.

Last edited by ponce; 01-14-2014 at 02:30 PM.
 
Old 01-14-2014, 03:54 PM   #13
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 326

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by ponce View Post
if you got a slackware64 minimal install and you don't want to get mad with dependencies, maybe the easiest way out is to issue a
Code:
slackpkg install slackware64
to switch to a full install.
Thanks for the tip, ponce! That may help others with the same issue, but I prefer to keep these servers lean since I don't need much software on them and I have limited disk space.
 
Old 01-16-2014, 02:23 AM   #14
Konchdrone
LQ Newbie
 
Registered: Jun 2011
Distribution: Slackware
Posts: 5

Rep: Reputation: Disabled
I was also disappointed with the Linode-provided Slackware images - they are just missing too many useful things. Creating a minimal image for server provisioning is on my long list of things to do.

Linode also took too long to release updated images, completely skipping 14.0.
 
Old 02-11-2014, 09:57 AM   #15
cenazoic
LQ Newbie
 
Registered: Jan 2009
Location: Minneapolis
Distribution: Arch, Slackware
Posts: 7

Rep: Reputation: 3
As another Linoder trying to set up a Slackware 14.1 server, thanks for the info on additional needed packages.

FYI, see here for usage stats on Linode distros - Arch is at 1.8%, and Slackware doesn't register at all.
 
  


Reply


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
[SOLVED] SlackBuilds: what is the best way to manage dependencies? andreas-r Slackware 3 01-20-2013 02:21 PM
[SOLVED] Problem installing mysql-workbench from Slackbuilds mitusf Slackware 1 10-15-2012 01:07 PM
[SOLVED] Problem installing monodevelop from slackbuilds. george-lappies Slackware 2 07-01-2011 12:44 AM
Linode Slicehost free? ex-para Linux - Newbie 6 01-12-2010 12:16 PM
Use SlackBuilds.org or my own hosting to offer up SlackBuilds? hollywoodb Slackware 6 11-30-2006 08:56 PM


All times are GMT -5. The time now is 07:47 AM.

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