LinuxQuestions.org
Visit Jeremy's Blog.
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 01-07-2011, 12:26 AM   #1
vodka_linux
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Rep: Reputation: 0
Export path and edit bash


Hi, Im new on linux and in this forum too. so i hope learn a lot using linux, I use the centos 5.5 version, and i need help with a basic problem but I try different metods and i cant make to work, so this are my questions.

1) I install and configure subversion on a custom path from a tar file, for example /mydir/subversion, but i cant use the svn command like when I install from a yum or rmp, how can I export my /mydir/subversion/bin path to a bash for use always in every session?

2) I remove a yum installed subversion with yum remove subversion, but when a run the command show me the next error "-bash: /usr/bin/svn: No such file or directory", how can I edit the -bash file to remove that error?

3) I install red5 from the tar file too, how can I run automatic when my server start, because i have to use ./red5.sh& every time to turn on my computer, the same thing for apache server.

One more thing I only use the command line i dont have a graphical interface.

Thanks for your help.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-07-2011, 01:27 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,520

Rep: Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502
Hi,

1. You can edit (or create if it doesn't exist) .bash_profile and use:
Code:
export PATH=/mydir/subversion/bin:$PATH
2. With the above, the error should go away

3. Edit /etc/rc.local and add:
Code:
/full/path/to/red5/red5.sh &
Same for apache

Regards
 
1 members found this post helpful.
Old 01-07-2011, 08:40 AM   #3
vodka_linux
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by bathory View Post
Hi,

1. You can edit (or create if it doesn't exist) .bash_profile and use:
Code:
export PATH=/mydir/subversion/bin:$PATH
2. With the above, the error should go away

3. Edit /etc/rc.local and add:
Code:
/full/path/to/red5/red5.sh &
Same for apache

Regards
Thank you very much barhory, works great, I really appreciated your help excellent forum.

Regards.
 
Old 01-07-2011, 03:41 PM   #4
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
If your problem has been solved, it's nice to mark it 'Solved' (using the thread tools) - and since the answer you got was so helpful, to also click the 'Did you find this post helpful? _Yes_' button on barhory's post
 
2 members found this post helpful.
  


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
Export PATH scucci Linux - Newbie 3 10-28-2009 09:14 PM
Ubuntu 8.04 loses my $PATH. Why do I have to repeatedly export PATH= ? oouc Ubuntu 10 09-14-2009 12:54 AM
export PATH problem arnuld Fedora 13 12-13-2007 11:01 AM
export Path=/usr/java:$Path does not seem to work lumix Linux - Newbie 1 03-19-2007 04:11 PM
export PATH Question Loosewheel Linux - Software 5 01-18-2006 02:44 PM


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