Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
11-23-2004, 09:35 PM
|
#1
|
LQ Newbie
Registered: Sep 2004
Posts: 5
Rep:
|
Suse: confused on many things, why is installing things so hard?
Is there some kind of guide out the to aclimatize windows users to linux? Because im having serious problems installing programs. Most seem to come as source code which I have no idea what to do with. I follow instructions and do the ./configure command and it pops up an error message "unknown host ." I really wanna learn simple stuff =/
|
|
|
11-23-2004, 11:25 PM
|
#2
|
Senior Member
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126
Rep:
|
When you install a program from source, you should do it in a console window (a window similar to the DOS window in windows).
1. Once you are in the console window, cd into the directory where you extracted the source to:
cd /path/to/extractdirectory
2. Check that the configure script is really there:
ls configure
If the above command does not list the configure file, then you are probably in the wrong directory.
3. Run the configure command:
./configure
4. Run the make command:
make
5. Login as root:
su -l
6. cd back into the extract directory (cause you have been dropped into root's home directory, when you logged in as root):
cd /path/to/extractdirectory
7. Run the "make install" command:
make install
Just a sidenote: are you sure that the program is only available in source?
Nowadays I came to realize that almost everything is available in rpm packages via YAST from the SuSE website: you just have to specify the SuSE ftp site as an installation source in YAST.
One can specify several installation sources there, so I also specified http://packman.iu-bremen.de/9.0/ as an additional installation source for my SuSE 9.0.
Actually, I specified the latter as the first installation source, as the packman site offers the full versions of (mainly multimedia) packages of which the official SuSE site has the "castrated" versions.
Just an example: I struggled a lot with installing the great mplayer multimedia player from source, until I finally realized that I could have installed it with some mouseclicks in yast (from the packman site).
Last edited by J_Szucs; 11-23-2004 at 11:42 PM.
|
|
|
11-24-2004, 12:31 AM
|
#3
|
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852
|
On Linux there are actually several different methods for program installation, most of them distribution dependent (although it's possible to get them to work on other distros usually). SUSE uses the RPM system, as does Red Hat and Mandrake. There's another system called APT, which is used by Debian-based systems. Then there's TGZ, the oldest and simplest version, which is used by Slackware-based distros. They each have their own strengths and weaknesses, but they all do pretty much the same thing--make program installation easier.
Now all 3 of the above package systems are binary installations. That means that somebody has taken the trouble to compile and set up the installation package for you (just like nearly all Windows programs). But that also means it's been compiled to run on the greatest number of systems, and may not be optimally set up for your uses. So in essence you're trading performance for convenience (Those differences are usually minor, however).
If you want better performance, or if nobody has created the proper package for you, or you want to enable functions that the binary packager didn't enable, you'll have to compile it yourself from the source code. that's where it can get hard. But actually, for most programs, compiling isn't so difficult. The only real problem is making sure you have all the proper development libraries installed. It only really gets bad for really large programs like KDE, Xfree86. Mplayer and such (I could never get Mplayer to compile correctly myself either).
The real secret to compiling from source is to read the README's and other documentation that comes with the source package. They will generally tell you how to go about it. It just takes time and experience before you will understand everything you read.
Anyway, my advice is, don't worry about compiling from source right now unless you really need it. Learn how to use the RPM system and install everything that way. I'd say 95% of what you'll want to use is out there in RPM form somewhere. Later, as you gain experience, you'll want to learn how to compile things, and it will get easier as you go along. Start small, and work your way up to the big stuff. Just be happy that you even have the opportunity. M$ doesn't give you that much.
|
|
|
11-24-2004, 06:27 AM
|
#4
|
LQ Newbie
Registered: Sep 2004
Posts: 5
Original Poster
Rep:
|
ah thanks that was really helpful
|
|
|
11-24-2004, 07:18 AM
|
#5
|
LQ Newbie
Registered: Sep 2004
Posts: 5
Original Poster
Rep:
|
alright now I tried doing it from from the console window and everything runs fine for a second then it says "no acceptable c compiler found in $PATH" where can I get a good c compiler and where should I put it?
|
|
|
11-24-2004, 11:50 AM
|
#6
|
Member
Registered: Sep 2004
Posts: 144
Rep:
|
In Yast, select the developer packages. I also found selecting the "experienced Linux" packages helpful.
|
|
|
11-24-2004, 12:10 PM
|
#7
|
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517
Rep:
|
Do you use 9.1 Personal-ISO?
There you will not find the required packages for compiling software on the CD. You need to add an FTP server to the yast installation sources.
Have a look here for mirror server:
http://www.suse.de/de/private/download/ftp/ausland.html
And add the server in Yast -> Change Source of Installation
You may then install the required packages from the server.
|
|
|
11-24-2004, 05:10 PM
|
#8
|
Senior Member
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126
Rep:
|
Hi Blackflare,
May I ask you what are you going to install?
|
|
|
11-24-2004, 08:11 PM
|
#9
|
LQ Newbie
Registered: Jun 2004
Distribution: blueflops
Posts: 15
Rep:
|
im having problems installing, too. ive spent the last week getting acclimated to suse 9.1, and i found an app on rpmfinder.net called guinstaller, which claims to make installing easier. after i installed it via yast, i still cant run it cuz i dunno where it is. what has to happen after yast runs an rpm to get the app to appear (&run from) the start menu? (sorry, i dunno what else to call it)
i also got the seti rpm in, but never found a way to run it.... and i couldnt get the command-line one to run as a user, or in a gui..... This is so incredibly frustrating! I can make Windows do anything (except be stable), but I'm so lost in Linux..... please help.
Last edited by NginUS; 11-24-2004 at 08:16 PM.
|
|
|
11-25-2004, 07:04 AM
|
#10
|
Senior Member
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126
Rep:
|
I wonder why you look for any other installers when you have yast on your machine?
I just cannot imagine an installation tool easier to use than yast: just open it, search and select the package you want to install (if you specified good installation sources then yast already knows hundreds of programs), and yast will do the rest: it will download and install the package and all of its dependencies, and it even inserts the new item in the kde menu.
Simply stop installing programs the windows way! On windows you should google the web for downloadable programs; download them and install them with the windows installer.
In SuSE Linux, yast does all this for you, but only if you use it!!!
If you use other installers not designed for SuSE, or try to install rpms designed for other distros then you will s[u]ck a lot, as those will just mangle your system.
When I was a noob to Linux I felt like you: I thought that installing softwares is incredibly hard on Linux compared to Windows.
E.g. when I read about a web downloader d4x, I said: I want it! And I did what I would have done on windows: googled the web to find where I can download it, downloaded it, tried to install it manually and struggled a lot with its dependencies. It took me two days until I could finally install it!
Now I just open yast, search d4x among the packages, select it for installation, and forget all about it as yast does the rest, so that d4x is downloaded and readily installed in 5 minutes.
That is a great difference: do it on your way and s[u]ck for two days, or do it the SuSE way and you have it installed with two mouse clicks.
It is your choice, however...
Last edited by J_Szucs; 11-25-2004 at 07:45 AM.
|
|
|
11-25-2004, 07:26 AM
|
#11
|
Member
Registered: Jul 2003
Location: Pennsylvania USA
Distribution: SuSE
Posts: 430
Rep:
|
yes yast does make installation easy.for me though,i like to install from source.i have noticed though that for some reason suse dosen't like the normal ./configure , using sh ./configure instead works wonders though.just open a consol,su and cd to the directory then enter 1 line--sh ./configure&&make&&make install ,if everything is proper then the program is installed when you come back with coffee
|
|
|
10-16-2007, 05:35 AM
|
#12
|
Member
Registered: Oct 2005
Posts: 116
Rep:
|
thanks for the info
|
|
|
All times are GMT -5. The time now is 11:09 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|