LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-05-2009, 12:02 AM   #1
zijian
LQ Newbie
 
Registered: Feb 2009
Posts: 6

Rep: Reputation: 0
Can I install Mysql binary as non-root?


If I can, could any one explain how to do so?
Thanks
 
Old 07-05-2009, 01:33 AM   #2
TITiAN
Member
 
Registered: Mar 2008
Location: NRW, Germany
Distribution: Arch Linux, using KDE/Plasma
Posts: 392

Rep: Reputation: 49
You can usually install anything into your "home" directory, it's just a bit tricky.
I have added this to my file /etc/profile (using root):
Code:
if [ -d $HOME/.local/bin ] ; then
    export PATH="$PATH:$HOME/.local/bin"
fi
if [ -d $HOME/.local/lib ] ; then
    export LD_LIBRARY_PATH="$HOME/.local/lib:$LD_LIBRARY_PATH"
fi
(Be careful with the .local/lib directory, as viruses might be implemented in libs you install.)
Now, when you compile stuff from source, you should pass the parameter --prefix=$HOME/.local to the command ./configure.
When you have binary files you want to execute (which don't depend on installed data), put them in your ~/.local/bin directory. Then you can execute them from the terminal/console/shell/... or your desktop (tested on Gnome).

Any further questions?
 
Old 07-05-2009, 06:03 AM   #3
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
you probably have to edit the installing shell script as it will not install mysqld to your home directory by default. You can export the $PATH variable and $LD_LIBRARY_PATH variable the way TITiAN explained.

@TITiAN: zijian spoke of binaries, not of compiling sources. In case of mysqld it is usually better to take the binaries compiled with intel compiler.

Anyway I never tested what I said. Maybe you actually have to compile it...

Last edited by j-ray; 07-05-2009 at 06:06 AM.
 
  


Reply

Tags
binaries, install, mysql, nonroot, program, root, software



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
Unable to set root password on new mysql install Arty Ziff Linux - Server 2 01-22-2009 11:17 PM
Installing MySQL From Binary matsko Linux - Software 1 08-12-2007 04:48 AM
Do I need binary 1 and binary 2 dvd iso for base install? salah-ad-din Debian 5 08-15-2006 04:43 PM
MySQL deleted root account and can't re-install... ivj Linux - Software 2 07-09-2004 10:51 PM
mysql binary uninstall steps... tuka Linux - Newbie 2 09-15-2003 04:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:03 AM.

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
Open Source Consulting | Domain Registration