LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   RPM installation (https://www.linuxquestions.org/questions/linux-newbie-8/rpm-installation-119600/)

sanjiv 11-24-2003 06:41 PM

RPM installation
 
Hi,
I just downloaded the xmms cdread plugin rpm. Before issuing the command,

rpm -i <plugin.rpm>,

I have a question. For some reason, while upgrading to Mandrake 9.1, the source code did not copied to my hard drive (by default). I am saying this as there is no 'linux' directory under /usr/src/. Don't I need the source code for installing the rpm ? Also, if the source code is required, where do I obtain it from ? The upgrading process does not give me an option to copy the source code, at any stage of the process. Or is it that I can copy the source code only if I do a full installation as opposed to an upgrade ?

Any help is greatly appreciated.

Regards,

Sanjiv

Khabi 11-24-2003 06:54 PM

I don't think you'll need the kernel source code for that program. But you can get the latest source code for the kernels at http://www.kernel.org

pilotgi 11-24-2003 06:56 PM

If you upgraded from a disc, you can look on the disc for the source code. If you downloaded the upgrade, maybe the source code wasn't included. Often the source code is included in the "developer packages" and aren't part of a basic install.

You do not need the kernel source to install rpms.

sanjiv 11-24-2003 07:05 PM

RPM installation
 
Okay, I issued the command and here are the error messages I got :

[sanjiv@localhost sanjiv]$ rpm -i xmms-cdread-0.14a-3mdk.i586.rpm

error: cannot open Packages index using db3 - Operation not permitted (1)
error: cannot open Packages database in /var/lib/rpm

What could be the problem ?

Sanjiv

Khabi 11-24-2003 07:22 PM

try doing it as root and see if you have the same problem.

bigjohn 11-24-2003 08:10 PM

Also, if you have other snags caused by doing the "upgrade" to 9.1, back up your stuff, and do a full install.

I've heard this many times from others. Never found out what the problem could be, cos I just do a full install each time, the only nuisance being updates and preferences.

Also have you checked that you've downloaded the correct version of the pluggin ? could it be that you have the one for the new version of xmms and the old xmms installed or vice versa ??


regards

John

sanjiv 11-24-2003 08:16 PM

RPM installation
 
Hi,
I tried compiling the rpm as a root. It seemed to compile smoothly (as in, I didn't get any error messages). I also checked the cdread plugin in xmms->preferences and disabled the default CDplayer plugin. Still, there is no sound. The default CD device entry in the plugin options is /dev/cdrom.

Regards,

Sanjiv

bigjohn 11-24-2003 09:26 PM

Open a mixer (kmix or aumix, or something like that) and make sure that you haven't got it muted, a lot of distro's come with the sound muted by default.


Also, just to see if the cdplayer will work, if you have a cdrw like I have, I have to open kscd or grip (which might be a ripper, but is also a fully functional cd player) and tell it to look at /dev/scd0 - this is to do with cdrw's using scsi emulation.

I don't use xmms to play audio cd's, because the path that I have to put in is so complicated and I couldn't get it to save it, and wasn't about to piss about trying to remember something mega long.

also, make sure that you have the latest xmms (1.2.8 I think) as it can pick up "digital" output devices.

If you have more than one drive i.e. cd/cdrw/dvd you will have to make sure that you know which one to use, linux will normally only pick up the sound from the drive that is connected via audio cable to the sound card/device - unless (as far as I know) you have the latest xmms as above, though I couldn't tell you how to configure it, as I haven't got round to that yet.

regards

John

p.s. if you are using kde (don't know about gnome) and your sound isn't muted, then you should hear the start up jingle when you boot up, there's also a test sound button in the kde control centre I think it's under sound or maybe system

sanjiv 11-24-2003 09:47 PM

xmms troubles
 
I checked the sound settings. They are not muted. I am able to listen to mp3s, in any case. I tried changing the device to /dev/scd0, but that too didn't help. If I use grip, I have the same problem (unable to play) but I am able to see the tracks, at least.

Regards,

Sanjiv

sanjiv 11-24-2003 09:50 PM

grip messages
 
Sorry, I forgot to post this in my previous mail. As soon as I start grip, I get the following message :

Unable to create directory /usr/share/apps/kscd/cddb/
Check permissions!

Regards,
Sanjiv

bigjohn 11-25-2003 06:36 AM

Well, if you've got some sound, then it can only be a config/set up thing i.e. the mp3 thing confirms that the actual sound system is working.

You haven't said how many "removeable media" drives your system has - the /dev/scd0 thing, seems to work with my system, beca use I have a dvd drive as well as a cdrw.

Use the non-fb boot option (should be listed under lilo start prompt) if it's available, and if you know what the system calls the various drives i.e. the hard drive should be something like hda, but the windows partition would normally be hda1, and a linux partition should be hda2, see if there is a drive name that comes up that you don't recognise/understand. the /dev/cdrom is the default setting, I've never managed to get it working with that, though I would imagine with the correct "symlinks" in place you could (but I don't know enough to advise you on what they are).

With my system, that's how I identified the name of the drive. Because i have the 2 removeable drives, the system actually calls my dvd drive /dev/hdc and the burner is /dev/scd0 but my system also calls the drives cdrom and cdrom2 - if it's only a cdrom drive that you use, then you would have to find out what your system is calling it then for kscd and grip you should be able to tell it to look at /dev/whateveritcallsit !

Or if you want to carry on with xmms, then go here and follow the link for documentation. sorry that's the best I can suggest, I don't even have the audio cd plugin, as I mentioned earlier, I haven't bothered to use xmms for audio cd's for a long time, but when I was trying this 18 months ago, and had the plugin I seem to recall that I had to configure it with the plugin and then the path was

/dev/scsi/host0/bus0/target0/lun0/cd

but as you can see, I still had to follow a scsi path, due to the "scsi emulation" required for the burner.

You may also have to look inside your pc, to make sure it's actually set up with the audio cable from the cdrom/cdrw/dvd/whatever to the sound device/card, cos if it's only ever had windows in it before, windows picks up the sound output from the ide cable, so there may not even be an audio cable (mine is a thin 2 stranded cable from the drive to the sound card).

Hope this makes sense.

regards

John

sanjiv 11-25-2003 08:35 AM

xmms troubles
 
Thanks a lot for your detailed email. Will try out what you suggested and let you know if I get the sound to work. Thanks once again. I really appreciate your help.

Regards,

Sanjiv

bigjohn 11-25-2003 09:00 AM

Da nada

regards

John


All times are GMT -5. The time now is 10:02 AM.