LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-30-2009, 11:50 AM   #1
eric?
LQ Newbie
 
Registered: Apr 2009
Location: Harrisburg, PA
Distribution: Fedora 10
Posts: 2

Rep: Reputation: 0
Compile mpd without root access


Currently I have all my media (primarily mp3s) backed up on a 3rd party server where I don't have root access. I'm definitely new to linux but it seems that mpd is lightweight enough that I could compile it on the server and just point the playlist and database towards the appropriate folders. Is this ridiculous? This seems like just a good idea...

BTW, hello to everyone!
 
Old 05-01-2009, 09:21 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,693
Blog Entries: 1

Rep: Reputation: 217Reputation: 217Reputation: 217
You don't need root access to build software or install it. You only need root access to install software system-wide (i.e., into /usr, /opt, etc.) Just install mpd in your $HOME directory.
 
Old 05-01-2009, 03:51 PM   #3
eric?
LQ Newbie
 
Registered: Apr 2009
Location: Harrisburg, PA
Distribution: Fedora 10
Posts: 2

Original Poster
Rep: Reputation: 0
thank you, but aren't there dependencies to worry about (which will be located in directories where root access is required)?

1.) I made the directory $HOME/mpd/ and untarred mpd there
2.) When attempting to ./configure I received the error:

checking for GLIB... no.
configure: error: glib-2.6 is required

3.) so I obtained the tar for glib-2.9 and untarred that in a $HOME/glib/ directory, I didn't have the permission to ./configure so I issued the command:

./configure --prefix=/home/eric_the_clerk/glib/glib-2.9.0

I think that was the correct thing to do...anyway I was able to successfully make & make install glib.

4.) I edited .bash_profile to include this location in $PATH, "export PATH=$PATH:/home/eric_the_clerk/glib/".

5.) However I still get the "configure: error: glib-2.6 is required" when trying to ./configure mpd.


I'm really new to manually compiling software, yum normally takes care of all my problems. Do I have the right idea? is there a guide to this I can be referred to? I really appreciate any help.
 
Old 05-01-2009, 07:15 PM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,693
Blog Entries: 1

Rep: Reputation: 217Reputation: 217Reputation: 217
You don't need root access to link against the dependencies. If it were me, I would create a directory in my $HOME for installing software; something like $HOME/local. Then when I configured a package, I would pass the prefix as --prefix=$HOME/local. I would also add $HOME/local/bin and $HOME/local/sbin to my $PATH and $HOME/local/lib/pkgconfig to my $PKG_CONFIG_PATH.

Adding /home/eric_the_clerk/glib/ to your $PATH isn't going to resolve the mpd error. mpd is looking for glib-2.0.pc which is installed in /home/eric_the_clerk/glib/glib-2.9.0/lib/pkgconfig. Since this isn't a default directory for pkg-config to search in, you need to tell it to look there by adding the directory to $PKG_CONFIG_PATH.
 
  


Reply

Tags
media, mpd, wan


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
why can't root level access do everything root account can do? newbiesforever Linux - General 6 09-22-2008 10:02 AM
How to access Access root(/) hard drive attached in Windows XP machine farrukhndm Linux - Software 2 07-29-2008 12:52 PM
[SOLVED] Disable remote root access but allow local root access-- possible? bskrakes Linux - Security 3 03-03-2008 12:15 PM
about mpd Chocolate Linux - Networking 0 12-11-2006 02:31 AM
mpd questions. doralsoral Linux - Software 1 06-16-2005 03:57 PM


All times are GMT -5. The time now is 04:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration