LinuxQuestions.org
Review your favorite Linux distribution.
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 04-12-2009, 10:06 AM   #16
propagationofsound
LQ Newbie
 
Registered: Apr 2009
Posts: 14

Original Poster
Rep: Reputation: 0

BTW I used generic kernel...
I'll try to emerge the rt61pci driver by downloading the urls instead of trying to comprehend the confusing compile instructions! tnx
 
Old 04-12-2009, 10:18 AM   #17
chilebiker
Member
 
Registered: Jun 2006
Location: Lake District, Chile
Distribution: Arch
Posts: 50

Rep: Reputation: 17
Why don't you just use Arch? It's as fast as Gentoo but without compiling... :-)
 
Old 04-13-2009, 04:18 AM   #18
synss
Member
 
Registered: Jul 2007
Location: Germany
Distribution: Debian, Gentoo, Mac OS X
Posts: 137

Rep: Reputation: 22
Quote:
Originally Posted by propagationofsound View Post
I forgot to when running ./configure, I just ran ./configure when I should've run ./configure --prefix=/usr --sysconfdir=/etc so I made uninstall then reconfigure and installed using that command so it now works and openbox works! Just wireless driver to go now!
Skipping the package manager and installing into /usr is called asking for trouble. At least tell the package manager that you have installed it yourself. You can do that in Gentoo by adding the correct category/package_name to your world file. But frankly, why did not you use emerge? You can modify the ebuild if you want to skip patching, etc. Really, if you go on like that, you'll break it in no time.

Last edited by synss; 04-13-2009 at 04:21 AM.
 
Old 04-13-2009, 04:40 AM   #19
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Quote:
Originally Posted by synss View Post
Skipping the package manager and installing into /usr is called asking for trouble.
True.

Quote:
Originally Posted by propagationofsound View Post
FIXED

I forgot to when running ./configure, I just ran ./configure when I should've run ./configure --prefix=/usr --sysconfdir=/etc so I made uninstall then reconfigure and installed using that command so it now works and openbox works! Just wireless driver to go now!
No. --prefix=/usr is most likely the default. When you install things outside the package manager scope you shouldn't do it in the system directories, at least be clean and do it in /usr/local or better, in your home directory.

And... the libs used to link would be the same regardless of your prefix, so if the previous binary didn't work it means, as I already said in my previous post, that you linked it against other libs and not those that you have right now. That can mean many things, for example that you compiled it against a previous version of the lib, or that you simply downloaded a binary package (most likely) and used that to install openbox for I-don't-know-what-reason.

I also told you in the other post how to download the sources and where to put them to you can install the package properly using emerge, and not on your own. Seriously, if you plan to compile everything by hand you should be using LFS instead of Gentoo. So, that's not a "fix", but a hack. And you are going to have problems if you continue using Gentoo that way.

However, to each his/her own. You have the right to use it as you wish, this is just an advice that aims to save you some future pain.

Quote:
Originally Posted by synss View Post
At least tell the package manager that you have installed it yourself. You can do that in Gentoo by adding the correct category/package_name to your world file.
No. That will only push the package in the system, meaning that the next time you emerge that package or update world the package will be installed if it's not in the system. I guess you meant /etc/portage/profile/package.provided. But as you say, this makes no sense anyway.
 
Old 04-13-2009, 06:12 AM   #20
propagationofsound
LQ Newbie
 
Registered: Apr 2009
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks.

I see what you mean. I'm just a bit used to ubuntu when the package manager automatically updates if you compile by hand.

I tested out emerge by installing gEdit. Pretty nifty!
Because I didn't have internet, I emerge -pvf gedit > afile.txt then go on another computer and download the packages as you said in previous post.

Well, my 'hack' worked anyhow, and frankly its my own fault if it suddenly dies. I didn't really understand portage, and now it all makes sense...!! tnx

The prefix=/usr was just what the openbox wiki said to do...(I hadn't read it first time - my fault...again)

I've just read in the Gentoo wiki how to use the rt61pci driver for my wireless card, and I'm gonna follow that. Generally its just changing the kernel configuration to use the driver included in the kernel then recompiling and installing the kernel. That means I don't have to get another ralink-rt61 driver, and use the inbuild kernel one, which should be better.
 
Old 04-13-2009, 06:22 AM   #21
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Nice to know.

Once you get your network working all should be even easier.

However I don't understand that bit about Ubuntu being aware of whatever you install by hand. I don't think it works that way, unless you are referring to create your own deb package from source.

When you install something via make install is like when you copy a file into /usr/bin by hand. The package manager has virtually no way to register that action. And even if it had a way to register that via some voodoo kernel patch that logs all the disk operations or via a heavy inotify daemon (I am fairly sure that ubuntu does neither), it would still have no clue to what package does that file belong to, and much less, what's the url to check for updates, how to compile, and how to install them.

So I think that you are somewhat confused about how the thing works.
 
Old 04-13-2009, 07:54 AM   #22
dreadnyah
LQ Newbie
 
Registered: Mar 2009
Posts: 11

Rep: Reputation: 0
I seem to be coming to this discussion late, but I hope you don't mind if I stick my two cents in. No one mentioned the most obvious linux "distribution" for the fastest, leanest, bespoke (i.e. customised to YOUR needs) installation - it is Linux From Scratch (LFS). Using Linux From Scratch you build a minimal system, entirely compiled from source, and then go on to add the applications that you want - only the ones you want, not what's imposed by the distributions' architects. The LFS (online) book gives clear direction as to how to build the system and once completed you have gained two things - (1) a linux installation that works the way you want it to and has the features and tools that you want without unecessary bloat, and (2) a deep understanding and knowledge of linux and the way it works. Having read through the posts above I believe that it might be worth your while to look at LFS. The website is http://www.linuxfromscratch.org/lfs .

PS I have no association with LFS other than as a user.
 
  


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
Linux Distro with the fastest boot? deputyjones Linux - Desktop 21 12-06-2010 02:15 PM
Why is web browsing under Linux so slow mrdover Red Hat 3 12-19-2005 07:58 PM
Fastest way to boot linux. unholy Linux - Distributions 5 05-30-2004 11:33 AM


All times are GMT -5. The time now is 04:57 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