LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Cannot install programs (https://www.linuxquestions.org/questions/mandriva-30/cannot-install-programs-95276/)

garbo73 09-21-2003 05:53 PM

Cannot install programs
 
I am new to the world of Linux, coming from Win XP Pro. I have installed Mandrake 9.1 and using KDE 3.1. Any programs that I try to install, unless they have an .rpm extension do not work. I have tried to "make install" or even use the ./ command on the files to try and get them to work. It almost seems as if gcc or any of the other compiler programs are not working, do they need to be turned on in order to use? Any advise would be greatful.

Thanks,
Garbo73

itsjustme 09-21-2003 06:02 PM

Well, you're going to have to specify what you are trying to install, what commands you are using, what results you are seeing, etc...

baud 09-21-2003 06:03 PM

well try to find rpm files before trying others way of installing programs...
There's almost always an rpm provided for each program (sufice it to have a look on rpmfind.net, there will be an rpm for your distribution). An rpm takes care of dependancies whereas compilation is more of an try and error mode...

Otherwise be more specific for programs you've got problems to install. copy/paste the *first* errors you are seeing, the last errors being often consequences of the former.

if gcc is missing, just install it via rpmdrake (menu / Configuration / Packages / Install software) search for gcc and install it, you may need libc and any other program identified in the readme (or README) available with your program).

often after tar zxvf <program.tgz>, you will have to do
./configure # create makefile required and do some checking
make # compile
make install # put compiled program where it ought to be

minio 09-21-2003 06:24 PM

You must unpack these files first. Then cd into the directory which was created by unpacking and should read README file (:o). Usually you just type ./configure after it finishes type make (this may take a lot of time to finish) and then type make install.

garbo73 09-21-2003 07:51 PM

I receive an unkown host error when I ./configure. I have tried to install Ruby and even Java using these methods. I also get an error when I use rpmdrake when it tries to install all of the programs (which should have installed on installation since I checked them all then). One other program I was trying to use was MyBitch so that I could get into yahoo chat.

coupace 09-21-2003 08:05 PM

ok, i know i'm really new at this, but i'm trying to install the java development kit 1.4.2, and i have the file

j2sdk-1_4_2_01-linux-i586-rpm.bin

now... what do i do with it to make it into a .rpm so i can install it?

(i heard something about "unpakaging"... do i have to unpakage it? if so, how do i do that?)

would appreciate any help!:)

thanks

:newbie:

ArmedGeek 09-22-2003 07:49 AM

With the j2sdk or j2re*.bin files .. essentially (if you downloaded the RPM version) is packaged with the EULA. Anyway, just cd to the directory with the *.bin and:
./sh j2*.bin

This will display the EULA. Hold down the enter key until it's done, it will ask you to type 'yes' to agree to the EULA then it will unpack the file. After all that you will have a j2*.rpm sitting there just begging to be...well..rpm'ed :))

baud 09-22-2003 12:15 PM

garbo73, for Ruby I cannot help as I don't know it. Looking at their website, I've seen .rbx files that I haven't seen before, I hope you've taken the tar.gz ?
Either open a thread for Ruby there or have a more thorough look at their website, they should have a faq for installations ? maybe a forum ?

For Java, see above. That works.

For MyBitch, it dates back to 2002 and is console mode, try Gaim (it has yahoo support, though I could not find how to stay invisible...) or download yahoo's rpm (not that well maintained...) in rpm : http://messenger.yahoo.com

garbo73 09-22-2003 05:15 PM

Do you know if there are any programs that allow you into yahoo chat, I found that Gain allows my buddy list to open but that is it? Will try the other processes suggested. Thanks.

garbo73 09-22-2003 05:39 PM

I have also noticed that under file:/usr/bin there are several applications that are executable. These include the java, gcc, c++ and several others. Are these actual programs and if so, how do you make them useable?

baud 09-22-2003 07:15 PM

first learn what each of them do, typing
man [program_name]
or
[program_name] --help

which will give you a hint at what they do.
avoid launching them as root as long as you don't know what they do...

garbo73 09-22-2003 11:15 PM

I can't even get those to work, not sure how to get anything to launch. The ./sh, man, or any other command does nothing. I feel like all I have is a web browser that's very fast, but that only does so much. What am I doing wrong or not doing?

baud 09-23-2003 05:00 AM

well, first play with what's available in the KDE menu, at least it will be graphical programs... you will feel at home.

for man and sh if you don't give them arguments (i.e. parameters in programmation), they won't do much, if not complaining.

try
man sh
it will give you a manual for sh

try
man man
it will give you the manual for the command man

garbo73 09-23-2003 05:41 AM

I type man man under the run command and nothing happens, same thing with man sh.

baud 09-23-2003 07:44 AM

Those commands only work in a terminal window.

Play with the menu rather than trying to launch commands from the menu (only if you know what it does). First try in a terminal window (either gnome-terminal or eterm or you name it...)


All times are GMT -5. The time now is 11:41 AM.