Jump to content

blender> nvidia driver> kernel module> gcc problem


Guest socratesone
 Share

Recommended Posts

Guest socratesone

WARNING: LONG POST.

I want to use blender. In order to use blender, I need to have opengl support, meaning I need the glx module to run on X startup, meaning I need nvdia drivers.

 

-OK-

 

I HAD nvidia working before, and sucessfully installed it. Now, I get this when I change the "nv" to "nvidia" in xorg.conf:

 

from "var/log/Xorg.0.log":

(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module!
(EE) NVIDIA(0):  *** Aborting ***
(II) UnloadModule: "nvidia"
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found

 

I'd love to tell you what changed, but I'm not sure. It's PROBABLY the fact that I upgraded my kernel to 2.6.8.1-24mdk recently. (it's a hack box, anyway. I'm always hackin' away at it. Sometimes I make more than a few changes before I realize one of the changes did something bad. I'd just like to see if I can fix this manually instead of re-installing everything. That's one of the reasons I switch to linux in the first place--sick of re-installing windows to "fix" problems.)

 

Well. I'm pretty sure that the "no screens found" error is due to the nvidia kernel module failing to load. So I need to re-install the kernel module. OK, I try that by switching to init level 3 and running nvidia's driver installation (sh NVIDIA-Linux-x86-1.0-7167-pkg1.run). It tells me that I allready have the drivers installed and asks for confirmation for a re-installation. I confirm. While tring to install the drivers, is says that it needs to check for another kernel module for my kernel. It does and cannot find one. It says it needs to compile a new one and asks me to confirm. I confirm. It says it can't find gcc in my path and tells me to check my path for "cc".

 

Here's the error log:

 

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sat Apr  9 20:33:27 2005

option status:
(options status messages deleted. I just used the default with no options)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> There appears to already be a driver installed on your system (version: 1.0-
  6629).  As part of installing this driver (version: 1.0-7167), the existing 
  driver will be uninstalled.  Are you sure you want to continue? ('no' will a
  bort installation) (Answer: Yes)
-> No precompiled kernel interface was found to match your kernel; would you li
  ke the installer to attempt to download a kernel interface for your kernel f
  rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
  this means that the installer will need to compile a kernel interface for
  your kernel.
ERROR: Unable to find the development tool `cc` in your path; please make sure
      that you have the package 'gcc' installed. If gcc is installed on your
      system, then please check that `cc` is in your PATH.
ERROR: Installation has failed.  Please see the file
      '/var/log/nvidia-installer.log' for details.  You may find suggestions
      on fixing installation problems in the README available on the Linux
      driver download page at www.nvidia.com.

 

a "urpmi gcc" returns "everything allready installed".

a "gcc -v" returns "command not found"

This is my $PATH:

"user" is my username.

/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games:/home/user/bin

 

I know I have gcc. For some reason, though, I can't use it.

I did a "locate gcc" and got the following output (edited for length):

 

/lib/libgcc_s.so.1
/lib/libgcc_s-3.4.1.so.1
/var/cache/urpmi/rpms/gcc3.3-doc-pdf-3.3.4-2mdk.i586.rpm
/var/cache/urpmi/rpms/gcc-doc-pdf-3.4.1-4mdk.i586.rpm
/var/cache/urpmi/rpms/gcc-doc-3.4.1-4mdk.i586.rpm
/var/cache/urpmi/rpms/gcc3.3-doc-3.3.4-2mdk.i586.rpm
/usr/lib/gcc
/usr/lib/gcc/i586-mandrake-linux-gnu
(...and more in direcory)
/usr/lib/gcc-lib
/usr/lib/gcc-lib/i586-mandrake-linux-gnu
(and more in directory)
/usr/lib/openoffice/program/libi18nregexpgcc3.so
(...and more in directory)
/usr/X11R6/man/man1/gccmakedep.1x.bz2
/usr/share/doc/HOWTO/HTML/en/Assembly/gcc.html
/usr/share/doc/HOWTO/HTML/en/PA-RISC-Linux-Boot/gcc.html
(..various other files containing the string "gcc", but having to do with other programs)
/usr/include/linux/compiler-gcc+.h
/usr/include/linux/compiler-gcc2.h
/usr/include/linux/compiler-gcc3.h
/usr/include/linux/compiler-gcc.h
/home/user/locgcc

 

 

I checked the readme and I didnt' find anything, so the problem is with my gcc. I did some googling to find something about path problems with gcc, but I couldn't find anything. I'm not really into compiling things, so I don't know too much about it. I know that I have gcc, so why can't I find it?

 

BTW, I allready tried removing gcc and re-installing it- no dice. Still not in my path. I'd change my path using a "PATH = $PATH:<whatever>", but I don't know what that "<whatever>" should be.

 

..I don't know. Anybody got any ideas?.

 

 

 

Moved from Software to Terminal Shell Commands, Kernel and Programming - Artificial Intelligence

Link to comment
Share on other sites

Guest socratesone

Machine Stats:

 

nvidia nForce2 motherboard w/integrated GForce 4

AMD 1800+

256 M RAM (32M being used for integrated video).

 

Running:

 

Mandrake 10.1 Community

Kernel 2.6.8.1-24mdk (upgraded from original install)

upgrading

From:

nvidia driver version: 6629

To:

nvidia driver version: 7167

 

Any other info you think would be helpful?

Link to comment
Share on other sites

Guest socratesone

Yeah, actually, you need to enter init level 3 and run the installer as root for it to even work in the first place.

 

Anyway, the problem is with gcc. I do a "gcc -v", which SHOULD give me the version number, but instead returns "command not found". When I try to INSTALL gcc with "urpmi gcc", it returns "everything allready installed". That means that gcc isn't in my path. How to put it in my path is the question that I'm really asking. Maybe I should have just asked that.

Edited by socratesone
Link to comment
Share on other sites

there should be an option with urpmi to reinstall a package. reinstall gcc, and probably the make package (i think it's named makeconf or makefile). also, try installing gcc-devel. of course, also make sure you have kernel-source installed.

Link to comment
Share on other sites

Guest socratesone
there should be an option with urpmi to reinstall a package.  reinstall gcc, and probably the make package (i think it's named makeconf or makefile).  also, try installing gcc-devel.  of course, also make sure you have kernel-source installed.

Yeah, I've tried to remove it and re-install it. However, Xorg needs gcc for some reason and I can't remove it without exiting x removing and re-installing for a command line, which I don't want to do because I don't know how x will react if there is a problem.

 

Anyway, the problem is with my $PATH. gcc isn't listed in the $PATH.

 

Try "echo $PATH" at the command line to see what I'm talking about. I'm not sure how to add it to my path.

Link to comment
Share on other sites

Guest socratesone

A "urpmi makeconf" returns nothing: "no package named makeconf". I try to use rpmdrake to install gcc and it's telling me "Sorry, the following packages can't be selected".

 

gcc-devel doesn't look like it's anywhere to be found, either.

 

I'm going to try and install the rpm directly, without urpmi or rpmdrake. I'll let you know how I make out.

Link to comment
Share on other sites

Guest socratesone

force option returns the same "everything allready installed".

 

Trying to install the rpm directly from a downloaded package returns the same "everything allready installed".

 

I just looked throught the man pages of urpmi and couldn't find a "no-deps" option.

 

How is it used?

 

I try "allow-nodeps" and get the same "everything allready installed" message.

 

I try "urpmi gcc --nodeps" and "urpmi gcc --no-deps" and see "unknown option --n" and, again "everything allready installed.

 

I went to rpmdrake (remove software) and looked for "gcc". I found these three files:

 

gcc3.3-cpp-3.3.4-2mdk (v 3.3)

gcc-cpp-3.4.1-4mdk (v 3.4)

gcc-doc-3.4.1-4mdk

 

I asked myself: am I supposed to have both v. 3.3 and v 3.4?

Is that my problem? So I removed 3.3. and tried again.

I tried to remove 3.4 and got the error message:

 

"There was a problem during the removal of packages:

/lib/cpp is needed by (installed) xorg-x11-6.7.0-2mdk"

 

"so it's /lib/cpp?" I thought to myself, and I put that in my path.

Stll no dice. However, running "cpp" gives me some output.

 

So, I have to go to work now, but I'm going to try to create a pointer to /lib/cpp and call it "gcc" in the bin directory and see if that makes the nvidia installer happy.

 

I'll let you know what happens.

Link to comment
Share on other sites

Guest socratesone

Ok, I've been troubleshooting extensively, playing around with this thing for pretty much every free hour I have, but I finally got the nvdia drivers working.

 

:banana:

 

I aslo finally got the jack audio demon running, which I was never able to do before.

:banana:

 

"How did I do this?" you ask?

 

--I downloaded an iso of ubuntu and tried it out.

 

--I highly recommend you do the same. Sorry "Mandriva" fans, but I think I'm done with it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...