LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Help? lol (https://www.linuxquestions.org/questions/fedora-35/help-lol-500750/)

EternalDecoy 11-11-2006 10:29 PM

Help? lol
 
Hey, I'm fairly new to Linux...so I have no idea what I'm doing lol....but, I was trying to install something, and it said something about needing to be recompiled in order to work with my kernal's version, so I told it to go ahead, and then it said it I needed a C compiler, so i used YUM and installed GCC (i think?), then tried recompiling it again, in which case it said it needed me to direct it to the folder which contained the "C headers"....after a few hours of googling and reading info, I Thought I had found the right version "C headers", and downloaded them, and installed them, and pointed the compiler to them....and it said the version of the C headers doesnt match my kernal's version....:confused: ....im running the final version of Fedora Core 5....and I'm the biggest linux noob you've ever met :D , any help would be GREATLY appreciated :Pengy:

EternalDecoy

Penguin of Wonder 11-11-2006 10:40 PM

The kernel headers for you kernel should be avaible through YUM.

EternalDecoy 11-11-2006 10:46 PM

I already spent a couple hours checking, the versions in YUM don't match my kernal version....at least, from what I can tell...

tmick 11-11-2006 11:54 PM

try opening a command prompt (should be able to right click on the desktop and choose "Open Terminal") type "su -" and enter the password then type "uname -rm" then in yum run "yum -y install kernel-*"
and see if that helps any

EternalDecoy 11-12-2006 12:22 AM

Alright, I tried that, but it just gave me this,

[root@localhost ~]# yum -y install kernal-*
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
jpackage-generic [1/7]
jpackage-generic 100% |=========================| 951 B 00:00
livna [2/7]
livna 100% |=========================| 951 B 00:00
flash [3/7]
flash 100% |=========================| 951 B 00:00
jpackage-fedora [4/7]
jpackage-fedora 100% |=========================| 951 B 00:00
core [5/7]
core 100% |=========================| 1.1 kB 00:00
extras [6/7]
extras 100% |=========================| 1.1 kB 00:00
updates [7/7]
updates 100% |=========================| 1.2 kB 00:00
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: kernal-*
Nothing to do
[root@localhost ~]#

tmick 11-12-2006 04:33 AM

ok my bad, I forgot yum doesn't like the glob operator (the astrik *).
Try this, instead of yum -y install kernel-*
do
yum clean all (this cleans the cache from yum, sometimes there are corrupt files)
yum -y update yum(make sure the newest version is installed)
rpm -qa kernel-* (this queries the RPM database)
the results should look something like:
[root@localhost ~]# rpm -qa kernel-*
kernel-devel-2.6.18-1.2798.fc6
kernel-headers-2.6.18-1.2798.fc6

then if they don't show up in the rpm command run
yum -y install kernel-devel-YourKernel version
yum -y install kernel-headers-YourKernel version
and see if that fixes it.

Also if you would like a GUI for yum you have some choices, you can run yum -y install yumex (this installs the Yum Extender GUI) screen shots and such are at http://www.yum-extender.org/cms/modules/news/
or
yum -y install smart-0.42-39.fc6 smart-gui-0.42-39.fc6 smartmontools-5.36-3
This installs the Smart Package Manager tools also a GUI for updating, although it uses APT instead of YUM. Their home page is http://labix.org/smart screen shots and such are at http://zorked.net/smart/doc/README.html
I like either of these over the Software updater GUI.
By the way I noticed you have jpackage-generic or something like that for a repo.
You might want to look over this web site for a better way to install and run Sun's JVM http://www.fedorafaq.org/#java .

EternalDecoy 11-12-2006 01:36 PM

Alright, I ran those commands, here's everything the terminal had,


[root@localhost ~]# yum clean all
Loading "installonlyn" plugin
Cleaning up Everything
0 headers removed
0 packages removed
23 metadata files removed
0 cache files removed
7 cache files removed
[root@localhost ~]# yum -y update yum
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
jpackage-generic [1/7]
Cannot find a valid baseurl for repo: jpackage-generic
Error: Cannot find a valid baseurl for repo: jpackage-generic
[root@localhost ~]# rpm -qa kernel-*
kernel-devel-2.6.15-1.2054_FC5
[root@localhost ~]# yum -y install kernel-headers-2.6.15-1.2054_FC5
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
jpackage-generic [1/7]
jpackage-generic 100% |=========================| 951 B 00:00
livna [2/7]
livna 100% |=========================| 951 B 00:00
flash [3/7]
flash 100% |=========================| 951 B 00:00
jpackage-fedora [4/7]
jpackage-fedora 100% |=========================| 951 B 00:00
core [5/7]
core 100% |=========================| 1.1 kB 00:00
extras [6/7]
extras 100% |=========================| 1.1 kB 00:00
updates [7/7]
updates 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 366 kB 00:02
jpackage-g: ################################################## 1596/1596
Added 1596 new packages, deleted 0 old in 6.26 seconds
primary.xml.gz 100% |=========================| 139 kB 00:00
livna : ################################################## 375/375
Added 375 new packages, deleted 0 old in 3.97 seconds
primary.xml.gz 100% |=========================| 1.0 kB 00:00
flash : ################################################## 2/2
Added 2 new packages, deleted 0 old in 0.20 seconds
primary.xml.gz 100% |=========================| 5.7 kB 00:00
jpackage-f: ################################################## 25/25
Added 25 new packages, deleted 0 old in 0.37 seconds
primary.xml.gz 100% |=========================| 767 kB 00:02
core : ################################################## 2207/2207
Added 2207 new packages, deleted 0 old in 16.98 seconds
primary.xml.gz 100% |=========================| 1.7 MB 00:03
extras : ################################################## 5614/5614
Added 5614 new packages, deleted 0 old in 44.95 seconds
primary.xml.gz 100% |=========================| 413 kB 00:05
updates : ################################################## 1120/1120
Added 1120 new packages, deleted 0 old in 14.36 seconds
Parsing package install arguments
No Match for argument: kernel-headers-2.6.15-1.2054_FC5
Nothing to do
[root@localhost ~]#

EternalDecoy 11-12-2006 01:46 PM

I think I found what I'm looking for on my FC5 disk...I'm just not sure which to install...it has multiple "kernel-" rpm's, with my version, but I have no idea which I need to install...

tmick 11-12-2006 01:57 PM

Quote:

Originally Posted by EternalDecoy
I think I found what I'm looking for on my FC5 disk...I'm just not sure which to install...it has multiple "kernel-" rpm's, with my version, but I have no idea which I need to install...

I think you are missing part of what you need also I noticed when you execute the yum command it lists "Loading "installonlyn" plugin" when I execute my yum I also have "Loading "fedorakmod" plugin"
let's try this
yum install plugin
and see where that takes you ;)
BTW what were you trying to install that started this whole thing?

tmick 11-12-2006 02:17 PM

Quote:

Originally Posted by tmick
I think you are missing part of what you need also I noticed when you execute the yum command it lists "Loading "installonlyn" plugin" when I execute my yum I also have "Loading "fedorakmod" plugin"
let's try this
yum install plugin
and see where that takes you ;)
BTW what were you trying to install that started this whole thing?

Better yet run this and you should get the version and package name
[root@localhost ~]# yum provides "fedorakmod"
Loading "fedorakmod" plugin
Loading "installonlyn" plugin
Setting up repositories
Reading repository metadata in from local files
Importing additional filelist information
filelists.xml.gz 100% |=========================| 70 kB 00:01
################################################## 262/262
filelists.xml.gz 100% |=========================| 539 kB 00:08
################################################## 129/129
filelists.xml.gz 100% |=========================| 1.2 MB 00:13
################################################## 1703/1703
filelists.xml.gz 100% |=========================| 1.1 MB 00:07
################################################## 428/428
filelists.xml.gz 100% |=========================| 3.3 MB 00:56
################################################## 4319/4319
/usr/lib/python2.4/site-packages/yum/__init__.py:1237: DeprecationWarning: prcoPrintable() will go away in a future version of Yum.

prov = po.prcoPrintable((p_name, p_flag, (p_e, p_v, p_r)))



yum-fedorakmod.noarch 1.0-2.fc6 extras
Matched from:
/etc/yum/pluginconf.d/fedorakmod.conf
/usr/lib/yum-plugins/fedorakmod.pyo
/usr/lib/yum-plugins/fedorakmod.pyc
/usr/lib/yum-plugins/fedorakmod.py
yum-fedorakmod = 1.0-2.fc6
config(yum-fedorakmod) = 1.0-2.fc6



yum-fedorakmod.noarch 1.0.1-1.fc6 extras
Matched from:
/etc/yum/pluginconf.d/fedorakmod.conf
/usr/lib/yum-plugins/fedorakmod.pyo
/usr/lib/yum-plugins/fedorakmod.pyc
/usr/lib/yum-plugins/fedorakmod.py
config(yum-fedorakmod) = 1.0.1-1.fc6
yum-fedorakmod = 1.0.1-1.fc6



yum-fedorakmod.noarch 1.0.1-1.fc6 installed
Matched from:
/etc/yum/pluginconf.d/fedorakmod.conf
/usr/lib/yum-plugins/fedorakmod.py
/usr/lib/yum-plugins/fedorakmod.pyc
/usr/lib/yum-plugins/fedorakmod.pyo
config(yum-fedorakmod)
yum-fedorakmod
then run
yum -y install yum-fedorakmod.noarch
that shold get the modules package which has the headers and such.
If all else fails run
yum -y install yumex
then run a search in the search bar for yum that will bring up all of the goodies available for your yum version.

EternalDecoy 11-12-2006 02:17 PM

ran the command, and just gave me this again,


[root@localhost ~]# yum install plugin
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
jpackage-generic [1/7]
livna [2/7]
flash [3/7]
jpackage-fedora [4/7]
core [5/7]
extras [6/7]
updates [7/7]
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: plugin
Nothing to do
[root@localhost ~]#



and, lol, I run Linux via a virtual computer, and I installed the tools so that I can move the mouse right into the Linux "computer", without having to click in the window, to make the mouse active within it, but after I installed the software to do that, I ran the config stuff for it, and it said it needed to recompile, as to work with my kernel, but then i didnt have a compiler installed, so i installed GCC, but then GCC needed the "C header" files in order to compile....and thus began my search for help :-P lol.

EternalDecoy 11-12-2006 02:27 PM

ahhhhhhhh....that was too much info all at once lol, I don't know what in that is commands, and what's spit-out text from a terminal.....and, I already have Yumex installed, though, what's the -y command do? Also, I can see the "kernel-devel-" packages on yumex, but their version doesnt match my kernel, whereas the ones on my disk do, I just don't know which to install to get what I need....

tmick 11-12-2006 02:32 PM

Quote:

I run Linux via a virtual computer, and I installed the tools so that I can move the mouse right into the Linux "computer", without having to click in the window, to make the mouse active within it, but after I installed the software to do that, I ran the config stuff for it, and it said it needed to recompile, as to work with my kernel, but then i didnt have a compiler installed, so i installed GCC, but then GCC needed the "C header" files in order to compile....and thus began my search for help :-P lol.
Ah VMware server what a joy :rolleyes:
I found it easier to install fedora as my main OS and install VMWare on that and make Windows the Virtual machine myself ;)
but, I think your problem lies in two areas,
1 VMware was only comapitble with GCC version 3. something and Fedora uses GCC 4. something, in your CD find legacy software and install those packages.

2 it is possible that the wrong development package for your processor is installed, running "uname -m" will tell you what is in stalled.
please post a screen shot of what packages are available via yumex

EternalDecoy 11-12-2006 02:45 PM

well, actually it's VMWare Workstation, and it sees GCC, but, when I installed FC5, I left off most of the development stuff, cause I was going for a very small install, and I didn't know I'd need any of it :newbie: , I believe I have the stuff I need right here on my disk, I'm looking at the "kernel-devel-" RPM's that match my kernel's version...I just don't know the difference between i586 and i686 :confused: ...or well, lol..

[root@localhost ~]# uname -m
i686
[root@localhost ~]#


okay, now I know which I need lol, and, what packages do you want me to take a screenshot of? I think there's multiple tabs of stuff...

forgot...where would I find the legacy software? and what might it be named as?

tmick 11-12-2006 03:00 PM

Quote:

Originally Posted by EternalDecoy
ahhhhhhhh....that was too much info all at once lol, I don't know what in that is commands, and what's spit-out text from a terminal.....and, I already have Yumex installed, though, what's the -y command do? Also, I can see the "kernel-devel-" packages on yumex, but their version doesnt match my kernel, whereas the ones on my disk do, I just don't know which to install to get what I need....

Sorry,
the -y option answers yes to questions; would you like to install certificate, etcetrea.
if the numbers are higher then your current Kernel they are newer versions.
You should need the basic kernel,
kernel-devel
kernel-doc
kernel-debuginfo
kernel-kdump
and yum-kernel-module
That should take care of basic needs. I remember you posting your kernel version ending in 2047? move to a higher number, my uname results are 2.6.18-1.2798.fc6 so if memory serves me correctly your newest version should be 2.6.18-1.22something go to that kernel.
the i686 means the cpu classifacation. I have a AMD Thunderbird 1700MHz and uname -m gives the output of i686.
Ask.com could give better information about it just ask what is i686 mean.
Let me know if I confused you more or if that helped.
btw if you run yum -h it does give command options with some expalination.


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