LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 11-29-2009, 10:41 PM   #1
WhisperiN
Member
 
Registered: Jun 2009
Location: Middle East
Distribution: Slackware 13.1, CentOS 5.5
Posts: 137

Rep: Reputation: 17
NSD: configure: error: C compiler cannot create executables


Hello Fellows,

How you doing?
Slackware Fans, and Lovers??

I have a little question, which I googled for 2 days trying to get an answer for it.. with no luck.

Here is my problem in short,
I have a tiny VPS with 256 of ram running Slackware-current.
It's used as Email Server, Web Server, DNS Server and MySQL Server. (Yeah, Slack)

Now, since the ram is a bit small, I gotta keep every thing sharp, and so I planned to use NSD in place of Bind to save ram.

Alright, downloaded, untarred NSD.. blah blah..
But, when I try to run ./configure it stops with:
Code:
configure: error: C compiler cannot create executables
I googled, and tried to install every package I thought it might help solving this.. but, still couldn't get it done..!!

Any hint, would be more than appreciated.

Last edited by WhisperiN; 11-29-2009 at 10:43 PM.
 
Old 11-29-2009, 11:33 PM   #2
sahko
Senior Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 1,041

Rep: Reputation: Disabled
See http://slackbuilds.org/faq/#x86_64
 
0 members found this post helpful.
Old 11-30-2009, 11:24 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Slackware 13 , 32 bit , NSD

nsd-2.3.7, nsd-3.2.3, nsd-SVN-rev.2926 all compiles in 5 sec.

( svn co http://www.nlnetlabs.nl/svn/nsd/branches/NSD_3_2/ nsd )

Which version are you using ?
Are you using a 64 bit Slackware 13 ?
.....
 
Old 11-30-2009, 05:21 PM   #4
WhisperiN
Member
 
Registered: Jun 2009
Location: Middle East
Distribution: Slackware 13.1, CentOS 5.5
Posts: 137

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by knudfl View Post
nsd-2.3.7, nsd-3.2.3, nsd-SVN-rev.2926 all compiles in 5 sec.

( svn co http://www.nlnetlabs.nl/svn/nsd/branches/NSD_3_2/ nsd )

Which version are you using ?
Are you using a 64 bit Slackware 13 ?
.....
I agree, and I have installed it, compiled it and I'm running on it, on another Slack box, it went like a charm..
But, in this box.. something is screwing up, related to some missing package or library.


NSD:
nsd-3.2.3

Slack:
Slackware 13-current regular (NOT 64)

Code:
nsd-3.2.3# ./configure
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: in `/home/nsd-3.2.3':
configure: error: C compiler cannot create executables
See `config.log' for more details.

Regards..
 
Old 12-01-2009, 02:47 AM   #5
WhisperiN
Member
 
Registered: Jun 2009
Location: Middle East
Distribution: Slackware 13.1, CentOS 5.5
Posts: 137

Original Poster
Rep: Reputation: 17
Still..
Can't solve it..!!

Last edited by WhisperiN; 12-01-2009 at 02:48 AM.
 
Old 12-01-2009, 02:58 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Missing ' kernel-headers ' ? ?

Reinstall ' gcc ' ?

Usually nothing is missing in Slackware, when you do a full install.

Then all packages in " slackware/d/ , l/ " should be present.
' d/ , /l ' are the packages for development.
.....
 
1 members found this post helpful.
Old 12-01-2009, 05:19 AM   #7
WhisperiN
Member
 
Registered: Jun 2009
Location: Middle East
Distribution: Slackware 13.1, CentOS 5.5
Posts: 137

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by knudfl View Post
Missing ' kernel-headers ' ? ?

Reinstall ' gcc ' ?

Usually nothing is missing in Slackware, when you do a full install.

Then all packages in " slackware/d/ , l/ " should be present.
' d/ , /l ' are the packages for development.
.....

Great, this gives me a start..

Unfortuanately,
This system, was setup at the very minimum packages..
(which, get, and those very basic tools wasn't there)

I'll give it a try, and let you know.. :-)
 
Old 12-03-2009, 02:11 AM   #8
WhisperiN
Member
 
Registered: Jun 2009
Location: Middle East
Distribution: Slackware 13.1, CentOS 5.5
Posts: 137

Original Poster
Rep: Reputation: 17
Hey, I have tried.. and installed bunch of packages.. but the problem still exist.

Is there a simple way I can follow to install the whole /l or b/ series?
 
Old 12-04-2009, 04:54 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
If you have the install cd's ( disk 1 ) or the DVD :

( Click 'cdrom' to mount the cd / DVD )
.. example cd ..
1) cd /media/S13_0d1/slackware/d
2) su

3) sh install-packages
.. to use the GUI
or 3a) installpkg *.txz

4) cd ../l
.. and repeat 3) or 3a)

If you don't have the disks, the packages are here ..
.. example link ..
ftp://mirror.pacific.net.au/linux/sl...3.0/slackware/
.....
 
Old 12-04-2009, 08:26 PM   #10
WhisperiN
Member
 
Registered: Jun 2009
Location: Middle East
Distribution: Slackware 13.1, CentOS 5.5
Posts: 137

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by knudfl View Post
If you have the install cd's ( disk 1 ) or the DVD :

( Click 'cdrom' to mount the cd / DVD )
.. example cd ..
1) cd /media/S13_0d1/slackware/d
2) su

3) sh install-packages
.. to use the GUI
or 3a) installpkg *.txz

4) cd ../l
.. and repeat 3) or 3a)

If you don't have the disks, the packages are here ..
.. example link ..
ftp://mirror.pacific.net.au/linux/sl...3.0/slackware/
.....

Thanks buddy, thanks a lot..

But, to let you know, that's not gonna work.. I'm working on a remote machine, a thousands-kilometers-away VPS that I don't have physical access.

So, is there any other way to do it remotely?

Regards
 
Old 12-08-2009, 12:32 PM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
No root access for the remote computer ?

I guess, you can install the missing headers
in your local computer , like :
/home/'username'/include/files.h

.. and point to the files ..

./configure CC="gcc -I/home/'username'/include/"
and / or
make CC="gcc -I/home/'username'/include/"
.....
 
Old 12-09-2009, 03:38 AM   #12
WhisperiN
Member
 
Registered: Jun 2009
Location: Middle East
Distribution: Slackware 13.1, CentOS 5.5
Posts: 137

Original Poster
Rep: Reputation: 17
Sure.. I do have root access.. but I mean, it's not a server where I can install packages from a CD.

It's a remote server with full root access..
 
Old 12-10-2009, 12:31 PM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Why not just install the "suspect package",
= kernel-headers , and see if things work ?

# installpkg kernel-headers

.. or just ' cp -a /linux/ <path-to-destination>/usr/include/
.. if you can unpack the txz package ...

.....
 
Old 12-01-2011, 07:40 PM   #14
Cozener
LQ Newbie
 
Registered: Nov 2011
Posts: 4

Rep: Reputation: Disabled
I actually had this exact problem. I just used slackpkg install kernel-headers and it worked afterwards

EDIT: err sorry, didn't mean to bump this
 
  


Reply

Tags
compiler, configure, error



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
configure: error: C compiler cannot create executables richlawson Fedora 14 02-22-2012 10:45 PM
configure: error: C compiler cannot create executables RLH1919 Slackware 6 11-13-2009 07:05 PM
configure: error: C compiler cannot create executables metalforever Linux - Software 1 06-21-2008 12:57 AM
configure: error: C compiler cannot create executables redsnapperke Linux - Software 11 06-05-2006 08:10 AM
configure error - C compiler cannot create executables MrLobster Linux - Software 1 12-24-2005 12:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:37 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration