Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi, i am brand new linux user - i am running redhat 9. so far i am in love with this os and so glad to be rid of windows, however, installing programs is just not happening.
can someone please help me get the vlc player installed?
i followed the install directions on the site:
# rpm -U *.rpm
and nothing happens. when i try to cd into a directory nothing happens also. can someone please give me some step by step directions for a total n00b1? i have not been successful installing anything yet - but i can hdparm my harddrives!!
m
ps i have read lots of stuff on installing programs unzipping files etc, i just cant do it for some reason. please help - and thanks.
first of all, "just cant do it" is completly useless. We cant help you with that. Most likely, you're missing GCC and the other development tools. You will have to install it via the Add/Remove programs GUI in Redhat.
Try installing the RPM with rpm -Uvh [file].rpm
This will be verbose and output any errors too you.
the RPM may have installed fine, have you tried running "vlc" in a console.
rpm -Uvh wxGTK-2.4.1-frl.1386.rpm (one of the rpms)
terminal says:
error: open of wxGTK-2.4.1-frl.1386.rpm failed: No such file or directory
i tried to cd into the directory, but this is what it says:
[root@localhost root]# cd /appz/media players/vlc player
bash: cd: /appz/media: No such file or directory
this is where i have the files:
/root/appz/media players/vlc player
i have dl all the files from the vlc website that it lists. i have tried to install all of them but can't get any of them to install (i even tried doubl click them).
i hope this is the info that you needed to help me, if not please let me know and i will post it.
thanks,
m
ps i have tried to run the program but it says there is no program. and, i installed everything that came with rh9.
these are all in my vlc player directory. i followed the directions from the vlc site as well as contrasutra's advice and others. i think once i get at least one program installed i should be good for all my installs. thanks
Dont run as root, it makes Linux as insecure as Windows
Dont add spaces to directories, It makes things harder, generally you want to use underscores.
Programs are generally installed like:
binaries in - /usr/bin/, /bin , /sbin, /usr/local/bin
libraries - /lib, /usr/lib, /usr/local/lib
config files - HOME directory (hidden), /etc/
Usually, you can run programs by typing the program name in a terminal.
One last thing, you dont have to create such a complex file structure (appz/media players), Generally, its fine just to store source tarballs and RPMs in one directory, like "tarballs" or "rpms" or something. Since the programs will install themselves to the appropraite directories.
thanks contrasutra, you have been so helpful. i am about to do exactly as you said for the install and file structure. but, i have a question about this:
"Generally, its fine just to store source tarballs and RPMs in one directory, like "tarballs" or "rpms" or something. Since the programs will install themselves to the appropraite directories."
are you saying that if i dl all the rpm files for the vlc player, for example, i should put these in the same directory as all the rpms for the xine player and everything thing else that i dl rpms for? and if i just type the program name in the terminal it will just run?
if i put all the rpms in the same directory, how do i keep track of what rpm is for what? and furthermore, what will happen if i type a wildcard style command like: # rpm -U *.rpm ? will it try to install every rpm in the directory even if it has already been installed?
so i changed the directory names a little for now, and did what would be simple for just about any one else (ie cd into a directory), and here's what i get:
[root@localhost root]# cd ./appz/media/vlc
[root@localhost vlc]# rpm -Uvh *.rpm
warning: a52dec-0.7.4-fr3.i386.rpm: V3 DSA signature: NOKEY, key ID e42d547b
warning: package faad2 = 1.1-fr2.20030409 was already added, replacing with faad2 <= 2.0-0.1.rc1.fr
warning: package xvidcore = 0.9.1-fr2 was already added, replacing with xvidcore <= 0.9.2-1.fr
Preparing... ########################################### [100%]
file /usr/include/postproc/postprocess.h conflicts between attempted installs of libpostproc-0.90-fr2 and libpostproc-0.90-4.20030808.fr
file /usr/lib/libpostproc.so.0.0.1 conflicts between attempted installs
of libpostproc-0.90-fr2 and libpostproc-0.90-4.20030808.fr
OK so a few files had some problems. i tried to run the program:
[root@localhost root]# vlc
bash: vlc: command not found
[root@localhost root]# "vlc player"
bash: vlc player: command not found
i tried this while in the vlc directory too, no good. i am sure it must be something really stupid that i am doing wrong. I am pretty happy though i am making progress - i will be pro in no time.
ok, many of the rpms i installed didn't go properly. i checked out the APT4RPM and i didn't install properly either. i then came across Synaptic and tried to instal that as well. but now, when i type a -Uvh the terminal seems to hang - and it won't reset. cd'ing through the directories seems to be the only command that is working. this:
[root@localhost root]# cd ./rpms
[root@localhost rpms]# rpm -Uvh synaptic-0.42-1.fr.i386.rpm
hasn't changed for about an hour now. is it time to uninstall RPMs or reinstall rh9? i am not too discouraged yet.
ok starting to get somewhere on my DAY 3 of rh9. got apt-get and the synaptic up and running. now back to my original problem: HOW DO I INSTALL THE VLC PLAYER. here is my current problem:
[root@localhost root]# apt-get install vlc
warning: cannot get exclusive lock on /var/lib/rpm/Packages
Reading Package Lists... Done
Building Dependency Tree... Done
Package vlc has no available version, but exists in the database.
This typically means that the package was mentioned in a dependency and
never uploaded, has been obsoleted or is not available with the contents
of sources.list
E: Package vlc has no installation candidate
I don't know of a rh9 apt repository that has vlc (I'm sure there is one somewhere) but using the rpms should work.
Check if vlc is installed with rpm -aq | grep vlc
If it installed something like vlc-0.6.2-2 should be printed to the screen. This is unlikely to happen as you can't run vlc so it sounds like it wasn't installed.
If nothing is printed then try to install vlc-0.6.2-2.i386.rpm with rpm -ivh [package name] this will either install it (great!!) or give a list of failed dependencies. Usually you can tell what packages you're missing by looking at the failed dependency messages. e.g. if there is a message like
error: Failed dependencies:
ffmpeg is needed by vlc-0.6.2-2
then you know you're missing ffmpeg-0.4.7-0.20030701.1.fr.i386.rpm
You may not need to install all of the rpms (prob don't need libpostproc), depending on what other software you've already installed (e.g. mplayer, xine). To run vlc just type vlc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.