LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 03-21-2005, 02:24 PM   #16
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30

simeandrews: you've *almost* got it.

"./configure" creates a "makefile" with the options appropriate for your system. In doing so, it check to see what you have installed on your system; specifically, the things the compilation is going to need.

"make" runs the compile portion of the makefile. That is, it takes the source code, and creates a functional application out of it.

"make install" runs the "install" portion of the makefile, copying and linking the appropriate parts of the application and it's libraries so that a user can run the application.

Edit: biojayc posted while I was typing. Biojayc: what is the *exact* error output by "make install"? That info is needed to help solve the problem.

Last edited by Padma; 03-21-2005 at 02:26 PM.
 
Old 03-21-2005, 02:34 PM   #17
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 59
info about exporting environment variables here
or another post on LQ here (might be good to follow the link in that page to the java SDK page).

set your variable by typing this at terminal window:
Code:
export GLIB_CONFIG=/somePath/here
and type the path you want it to reference to.

im posting this because you asked.. if you installed glib then it should have installed a glib_conf script file... you can use the path of that file in the export command. if you didnt install it however, then this wont help, probably.

Last edited by nadroj; 03-21-2005 at 02:36 PM.
 
Old 03-21-2005, 02:51 PM   #18
simeandrews
Member
 
Registered: May 2004
Distribution: Debian
Posts: 341
Blog Entries: 1

Rep: Reputation: 30
Wow, I was just making a somewhat educated (aka looking at what happens) guess!

Just to make sure, when you are doing ./configure --prefix=/usr, are you root? Just making sure, because only root can make changes to usr.

Last edited by simeandrews; 03-21-2005 at 02:54 PM.
 
Old 03-21-2005, 02:55 PM   #19
biojayc
Member
 
Registered: Mar 2005
Location: Dallas TX
Distribution: Kubuntu 6.10
Posts: 80

Original Poster
Rep: Reputation: 15
here is the error message I got when I tried to make install glib after doing ./configure --prefix=/usr/bin


/bin/sh ../../../mkinstalldirs /usr/bin/man/man1
mkdir -p --/usr/bin/man/man1
mkdir: '/usr/bin/man' exists but is not a directory
make[5]: *** [install -man1] Error 1
make[5]: Leaving directory '/home/biojayc/Desktop/glib/glib-2.6.3/docs/reference/glib'
make[4]: *** [install-am] Error 2
make[4]: Leaving directory '/home/biojayc/Desktop/glib/glib-2.6.3/docs/reference/glib'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory '/home/biojayc/Desktop/glib/glib-2.6.3/docs/reference'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory '/home/biojayc/Desktop/glib/glib-2.6.3/docs'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/home/biojayc/Desktop/glib/glib-2.6.3'


I checked the 'usr/bin/' directory and there is an executable called man in there, so that's why it says theres not a directory. I'm still very confused though what is going on. I don't understand linux at all. Why can't I just install glib to some location, and then set the environment variable for it so that xmms can find it? and if I can, how do I do so?
 
Old 03-21-2005, 02:55 PM   #20
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
Quote:
Originally posted by simeandrews
Wow, I was just making a somewhat educated (aka looking at what happens) guess!

Just to make sure, when you are doing ./configure --prefix=/usr, are you root? Just making sure, because only root can make changes to usr.
No, you are not root. Specifying the prefix configures the makefile to *install* to that location. Of course, then you need to do the "make install" as root.

Edit: biojayc: Doh! Of course. That's why the Prefix *should* be "/usr".

Now why that didn't work for you, I don't know ...

Last edited by Padma; 03-21-2005 at 02:58 PM.
 
Old 03-21-2005, 03:03 PM   #21
biojayc
Member
 
Registered: Mar 2005
Location: Dallas TX
Distribution: Kubuntu 6.10
Posts: 80

Original Poster
Rep: Reputation: 15
okay, I'm going to try the export thing. BTW, I was set to root. Thanx for all the speedy help, it's very nice
 
Old 03-21-2005, 03:16 PM   #22
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 59
curious to wonder what man has anything to do with this? does it mention something about man in order for the setup?
 
Old 03-21-2005, 03:18 PM   #23
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
You're welcome, biojayc. This is a big community, so replies are *usually* pretty fast.

To expand a little more on the tar.gz, and compile/make stuff, this is the common routine for using these files. (Note: for newbies, I *always* recommend using your own distro's package management system over compiling source, when possible. It's SO much easier.)

1) Download the tarball, e.g., "application1.tar.gz".
2) Open a terminal window.
3) $ cd /path/to/downloaded/tarball
4) $ tar -xvzf application1.tar.gz
(This step extracts the source code from the tarball, and typically puts it in a directory with the same name as the tarball, minus the ".tar.gz".)
5) $ cd application1
6) $ ./configure --prefix=/usr
7) $ make
8) $ su
9) <enter root password>
10) # make install
11) # exit

And check out this thread for a good discussion about tarball, and rpm files.

Edit: nadroj: apparantly the install puts some man pages out for the user to see.
 
Old 03-21-2005, 03:31 PM   #24
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 59
hmm.. right, makes sense.. forgot about those! :P
i was just curious to the point of the 1st 3 lines of in/ouput that he posted afew posts prior..?

edit: (referring to post #19)

that was the output for the command when he did what i suggested (--prefix==/usr/bin), as he notes. oh well, my head hurts and i need sleep! heh

Last edited by nadroj; 03-21-2005 at 03:33 PM.
 
Old 03-21-2005, 03:42 PM   #25
biojayc
Member
 
Registered: Mar 2005
Location: Dallas TX
Distribution: Kubuntu 6.10
Posts: 80

Original Poster
Rep: Reputation: 15
okay, I glib seemed to install fine with no erros, but there's no glib-config file on my computer anywhere. When I try to run ./configure on xmms, it errors as it did before and says to set GLIB_CONFIG environment variable to the glib-config script. But sense there isn't one, what do I do? The program says it needs v1.2.2 or higher, but the glib I'm trying to install is 2.6.3, so is it possible that it's such a higher version that it is implemented differently, and thus xmms just doesn't work with it anymore? This is getting pretty frustrating.


Also, I don't have an internet connection in linux, so I have to reboot into windows to post again, so that's why it may take a bit between posts. I've tried to get ndiswrapper to install but it errors during the ./configure phase. don't remember the exact errors because I have to print them out which I didn't do.
 
Old 03-21-2005, 03:48 PM   #26
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
biojayc: What happens when you go to the Mandrake Control Center/Software management, and try to install xmms?
 
Old 03-21-2005, 03:50 PM   #27
simeandrews
Member
 
Registered: May 2004
Distribution: Debian
Posts: 341
Blog Entries: 1

Rep: Reputation: 30
Quote:
I'm running Mandrake 10.0 Official. Whenever I go to the package manager and try to add in packages, sometimes it tells me to insert instalation cd 4, but there is only 3 cds? what is this mysterious 4th cd it's asking me for?

I was installing some stuff under developement, xmms, and some games when this happened last.
 
Old 03-21-2005, 03:50 PM   #28
biojayc
Member
 
Registered: Mar 2005
Location: Dallas TX
Distribution: Kubuntu 6.10
Posts: 80

Original Poster
Rep: Reputation: 15
>>biojayc: What happens when you go to the Mandrake Control Center/Software management, and try to install xmms?>>

are you talking about using urpmi or whatever (I don't have internet in linux) or using rpmdrake?
 
Old 03-21-2005, 03:52 PM   #29
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
RPMDrake.

(rpmdrake is just the gui front end for urpmi. )
 
Old 03-21-2005, 04:01 PM   #30
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 59
i read somewhere that glib-conf is supplied in the glib-devel package... heres a link to the rpm glib-devel dunno if this will help.. maybe try installing this and try installign xmms again?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mandrake 9.1 question Smurfy-v2.0 Mandriva 3 07-31-2004 07:05 PM
Question on Mandrake 10 woofer Linux - Software 2 05-31-2004 12:35 AM
Mandrake 10 question(s) DAChristen29 Mandriva 5 05-06-2004 10:13 AM
Mandrake DL Question LinuxLou Linux - Newbie 2 12-01-2003 11:19 PM
mandrake question Bd22 Linux - General 2 06-01-2003 04:57 PM


All times are GMT -5. The time now is 05:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration