LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   make file can't find a "ltdl.h" file (https://www.linuxquestions.org/questions/linux-newbie-8/make-file-cant-find-a-ltdl-h-file-698884/)

nedzer 01-27-2009 03:10 AM

Hi jdkaye,

I'm a newbie to Linux and am frankly apprehensive about undertaking a kernel rebuild. I've asked one of my colleagues and he said it's not a trivial matter but that he'll give it a shot once he's gone through the rest of my approaches.

At the moment even though this is high priority for this system to go live I'll have to leave it temporarily to get some of the other go live tasks completed.

Much appreciate all the guidance you've offered over the last few days. I'll be back to you to let you know when we're able to get it up and working.

Cheers, Ed

jdkaye 01-27-2009 11:26 PM

Quote:

Originally Posted by nedzer (Post 3422530)
Hi jdkaye,

I'm a newbie to Linux and am frankly apprehensive about undertaking a kernel rebuild. I've asked one of my colleagues and he said it's not a trivial matter but that he'll give it a shot once he's gone through the rest of my approaches.

Are you building your own kernel? or using a pre-rolled one from CentOS? If the former, then yes, it's non-trivial but if it's the latter (pre-rolled) then it is no harder than installing any other package (unless CentOS is really different from other distros)

Quote:

At the moment even though this is high priority for this system to go live I'll have to leave it temporarily to get some of the other go live tasks completed.
Fair enough. Give a shout if you need to.

Quote:

Much appreciate all the guidance you've offered over the last few days. I'll be back to you to let you know when we're able to get it up and working.

Cheers, Ed
My pleasure.
Cheers,
jdk

Agrouf 01-28-2009 12:30 AM

Quote:

Originally Posted by nedzer (Post 3418592)
Hi,

I went looking for config.h

There was loads of them

/usr/src/kernels/2.6.18-128.el5-i686/include/linux/config.h
/usr/src/kernels/2.6.18-128.el5-i686/include/config/i2o/config.h
/usr/src/kernels/2.6.18-92.1.22.el5-i686/include/config/x86/find/smp/config.h
/usr/src/kernels/2.6.18-92.1.22.el5-i686/include/config/i2o/config.h
+ loads more...


I'm not sure which one to edit. I'll ask around the traps here, but if it's obvious to you let me know, Cheers.

config.h is located in the directory of the sources you are trying to compile.

nedzer 01-29-2009 03:12 AM

Hi jdkaye,

the distro (I hope I have the linux speak down) I'm on at the mo' is Red Hat Ent 5.0. I'm a recent subscriber to the Red Hat Network so have no issues now doing up2date's etc.

I'm clueless when you refer to CentOS, pre-rolled etc.

I presume then that Red Hat would have a Kernel rpm that I can just install. But again due to my neophyte status I

1. wouldn't know where to look
2. wouldn't know what to look for

My machines are both 32-bit, if that's any help.

Cheers, you're a legend.

Ed

jdkaye 01-30-2009 12:14 AM

Quote:

Originally Posted by nedzer (Post 3424923)
Hi jdkaye,

the distro (I hope I have the linux speak down) I'm on at the mo' is Red Hat Ent 5.0. I'm a recent subscriber to the Red Hat Network so have no issues now doing up2date's etc.

OK, that's a start.

Quote:

I'm clueless when you refer to CentOS, pre-rolled etc.
Sorry about the lingo. Some people have special requirements and so they need to compile their own kernels with special switches etc. Most people use the kernels that are pre-compiled for their distro and so don't have to worry about this stuff. I would guess you're in this category.

Quote:

I presume then that Red Hat would have a Kernel rpm that I can just install. But again due to my neophyte status I

1. wouldn't know where to look
2. wouldn't know what to look for
You are quite correct. Sadly, I've never used a yum-based distro so I can't give you too many details. I use debian which has .deb packages rather than rpm's. Our equivalent to yum would be apt-get, aptitude or wajig. Using aptitude at the command line I would do something like this:
Code:

aptitude search linux-image
This gives me the following:
Code:

p  linux-image-2.6-686            - Linux 2.6 image on PPro/Celeron/PII/PIII/P
p  linux-image-2.6-686-bigmem      - Linux 2.6 image on PPro/Celeron/PII/PIII/P
p  linux-image-2.6-amd64          - Linux 2.6 image on AMD64
p  linux-image-2.6-k7              - Linux 2.6 image on AMD K7 - transition pac
p  linux-image-2.6-openvz-686      - Linux 2.6 image on PPro/Celeron/PII/PIII/P
p  linux-image-2.6-vserver-686    - Linux 2.6 image on PPro/Celeron/PII/PIII/P
p  linux-image-2.6-vserver-686-big - Linux 2.6 image on PPro/Celeron/PII/PIII/P
p  linux-image-2.6-xen-686        - Linux 2.6 image on i686, oldstyle Xen supp
c  linux-image-2.6.18-3-686        - Linux 2.6.18 image on PPro/Celeron/PII/PII
c  linux-image-2.6.18-4-686        - Linux 2.6.18 image on PPro/Celeron/PII/PII
c  linux-image-2.6.22-1-686        - Linux 2.6.22 image on PPro/Celeron/PII/PII
c  linux-image-2.6.22-2-686        - Linux 2.6.22 image on PPro/Celeron/PII/PII
c  linux-image-2.6.22-3-686        - Linux 2.6.22 image on PPro/Celeron/PII/PII
i  linux-image-2.6.26-1-686        - Linux 2.6.26 image on PPro/Celeron/PII/PII
p  linux-image-2.6.26-1-686-bigmem - Linux 2.6.26 image on PPro/Celeron/PII/PII
p  linux-image-2.6.26-1-amd64      - Linux 2.6.26 image on AMD64
p  linux-image-2.6.26-1-openvz-686 - Linux 2.6.26 image on PPro/Celeron/PII/PII
p  linux-image-2.6.26-1-vserver-68 - Linux 2.6.26 image on PPro/Celeron/PII/PII
p  linux-image-2.6.26-1-vserver-68 - Linux 2.6.26 image on PPro/Celeron/PII/PII
p  linux-image-2.6.26-1-xen-686    - Linux 2.6.26 image on i686, oldstyle Xen s

The kernel I have installed is the one with the letter "i" at the beginning of the line. You can see that my kernel is 2.6.26 and the architecture is 686 (32 bit). I use the 32 bit kernel even though I have an AMD Atheros 64bit chip, but that's just my choice.

So if yum has a search function just look for rpm's called linux-image (or whatever RHE calls kernels) and select a more recent one (i.e. higher number) and install it the way you would any other package. Make sure to get the kernel source and headers as well if you plan on compiling anything yourself.

Quote:

My machines are both 32-bit, if that's any help.

Cheers, you're a legend.

Ed
:o
Cheers,
jdk


All times are GMT -5. The time now is 08:54 PM.