View Full Version : Getting SVN to work.
phprocket
10-17-2006, 11:45 AM
Has anybody gotten SVN to work with Bluehost ?
I tried at one time but I think it requires root which bluehost should never give out anyway.. but is there a way to install it without having root access ?
I would love to use up some of my space with svn instead of paying for it at another hosting company..
For those who don't know.. here is the link
http://subversion.tigris.org/
SVN is great for the php developer to track code changes and bugs over several different versions. Subversioning is the way to go.. :)
Thanks. :D
aceofspades
10-17-2006, 05:42 PM
search for subversion. There is a way to install an SVN client. And yes we all know SVN rox and is better than CVS. I just use it as a fileserver for sourceforge projects. I havent used it on bluehost. I installed it though.
Just looked they dont support it. Life sucks. Nothing us little programmers can do about it.
I was able to get Subversion running on my account no problem. Here, I wrote a tutorial on how to compile it along with installing a Ruby weblog engine: article (http://blog.matharvard.com/2006/9/21/mephisto-subversion).
Hope this helps anyone trying to compile it. (I've done this on two accounts at Bluehost with no problems, there are a few warnings while compiling but no errors).
aceofspades
10-18-2006, 06:29 PM
I was able to get Subversion running on my account no problem. Here, I wrote a tutorial on how to compile it along with installing a Ruby weblog engine: article (http://blog.matharvard.com/2006/9/21/mephisto-subversion).
Hope this helps anyone trying to compile it. (I've done this on two accounts at Bluehost with no problems, there are a few warnings while compiling but no errors).
Thanks a bunch. I already set it up but I used the method that was in the subversion thread. Thing is I installed it fine I just have no clue how to symlink or use it.
phprocket
10-18-2006, 08:43 PM
I am still getting errors..
Here is the subversion I am tring to install
http://subversion.tigris.org/downloads/subversion-1.4.0.tar.gz
Here is the errors I am getting..
configure: Apache Portable Runtime (APR) library configuration
checking for APR... no
configure: WARNING: APR not found
The Apache Portable Runtime (APR) library cannot be found.
Please install APR on this system and supply the appropriate
--with-apr option to 'configure'
or
get it with SVN and put it in a subdirectory of this source:
svn co \
http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x \
apr
Run that right here in the top level of the Subversion tree,
then run autogen.sh again.
Whichever of the above you do, you probably need to do
something similar for apr-util, either providing both
--with-apr and --with-apr-util to 'configure', or
getting both from SVN with:
svn co \
http://svn.apache.org/repos/asf/apr/apr-util/branches/0.9.x \
apr-util
configure: error: no suitable apr found
I use the windows gui version of SVN
http://subversion.tigris.org/downloads/subversion-1.4.0.tar.gz
Normally I use devguard.com to manage all my SVN's but I would like to use my bluehost account if I can..
So I would need help on how to install and create directories to point my client gui to.. so I can upload and download changes...
I am uploading realtime using macromedia Captivate software flash so you can see what I have done..
I done this twice with the same results.. and I am tring to install the newest version for SVN.. 1.40
I will post a link to the flash screenshots once I upload them.. :)
Any help would be great.
I am hosted on bluehost box 110
Thanks.
phprocket
10-19-2006, 04:30 AM
Here is the link...
http://www.phprocket.com/work/svn-insall-1_fs.htm
Let me know if I did anything wrong.
Thanks.
:)
Just a note with my guide (posted above): It only works with Subversion 1.3.2 for some reason. I was talking to another person who encountered the excact same problem when they were trying to install version 1.4.x.
I would write one for using version 1.4.x but I don't want to risk messing up my account, if anyone else is willing to experiment, go for it.
aceofspades
10-23-2006, 07:56 AM
See this post http://bluehostforum.com/showpost.php?p=7223&postcount=16
How do i unistall subversion. Should I just delete the src folder so I can try doing it via that method.
Thanks a lot phprocket! WHAT a great show!!! Good job! Seriously, thx a lot.
((btw thanks for putting my picture there >.<))
aceofspades
10-23-2006, 08:30 PM
****it I dont know what is going on it isnt working. I got stuck here
The last step that you must do to get Mephisto running, is to populate the database. Open a new SSH window and type the following commands.
cd rails/mephisto
rake RAILS_ENV=production db:bootstrap
I got the following error
thrmtwon@3m2.net [~/rails/mephisto]# rake RAILS_ENV=production db:bootstrap
(in /home/thrmtwon/rails/mephisto)
mkdir -p /home/thrmtwon/rails/mephisto/config/../log
rake aborted!
undefined method `autoload_paths' for #<Rails::Configuration:0x2b6d40b3e420>
(See full trace by running task with --trace)
thrmtwon@3m2.net [~/rails/mephisto]# rake RAILS_ENV=production db:bootstrap
(in /home/thrmtwon/rails/mephisto)
mkdir -p /home/thrmtwon/rails/mephisto/config/../log
rake aborted!
undefined method `autoload_paths' for #<Rails::Configuration:0x2b6ae0fd8128>
(See full trace by running task with --trace)
thrmtwon@3m2.net [~/rails/mephisto]#
**** that last step always kills you!
With --trace
thrmtwon@3m2.net [~/rails/mephisto]# rake RAILS_ENV=production db:bootstrap --trace
(in /home/thrmtwon/rails/mephisto)
** Invoke db:bootstrap (first_time)
** Execute db:bootstrap
mkdir -p /home/thrmtwon/rails/mephisto/config/../log
** Execute environment
rake aborted!
undefined method `autoload_paths' for #<Rails::Configuration:0x2b77e5e60de0>
/home/thrmtwon/rails/mephisto/config/../config/environment.rb:19
/home/thrmtwon/rails/mephisto/config/../vendor/rails/railties/lib/initializer.rb:40:in `r
un'
/home/thrmtwon/rails/mephisto/config/../config/environment.rb:13
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
/home/thrmtwon/rails/mephisto/config/../vendor/rails/railties/lib/tasks/misc.rake:3
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute'
./lib/tasks/bootstrap.rake:5
./lib/tasks/bootstrap.rake:5
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in `invoke'
/usr/lib/ruby/1.8/thread.rb:135:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7
/usr/bin/rake:18
thrmtwon@3m2.net [~/rails/mephisto]#
I dont know what is going on I did everything exactly like it said on the guide. And now I am getting
undefined method `autoload_paths' for #<Rails::Configuration:0x2b77e5e60de0>
I dont understand what could I have done wrong? I installed ruby edge and everything.
phprocket
10-24-2006, 07:38 AM
Hi Matt,
I now got version 1.3.2 installed, I thought I needed the latest and greatest version 1.4.0 but it will not install, I notice the current SVN hosting company I have devguard.com is only running 1.3.0 so I guess 1.3.2 is not so bad after all.
I did this..
svn --version
svn, version 1.3.2 (r19776)
compiled Oct 24 2006, 07:31:12
Copyright (C) 2000-2006 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).
The following repository access (RA) modules are available:
* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
- handles 'http' scheme
- handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
I am Running Tortoise SVN the windows version, (build 7501 Tortoise SVN 1.40) Now that I have installed my own is there a way to point my Tortoise to a url to update code like I do on devguard.com ?
I thought there was a way to do it.. I read that somewhere but you have to modify the .bash_profile and or the .bashrc files..
Anyway... I am mostly a windows user anyway.. I am relearning VIM which I recall vagely from my linux class..
I guess the next step is to setup a respositary project for the code to be uploaded to..
I guess I am going to read the mountains of docs now.. if anybody has some advice I really like to hear it..
Once I figure out all of this.. I will make a flash movie like the other one I did.. but better quality..:rolleyes:
Anyway, Thanks for the help so far Guys.. I don't think I would have been able to get as far as I did with you.
aceofspades
10-24-2006, 07:41 AM
ok I will install 1.3.2. LOL
aceofspades
10-24-2006, 08:21 AM
I tried to install 1.3.2 and I Got THE SAME FRIKIN ERROR!!!!
thrmtwon@3m2.net [~/rails/mephisto]# rake RAILS_ENV=production db:bootstrap
(in /home/thrmtwon/rails/mephisto)
mkdir -p /home/thrmtwon/rails/mephisto/config/../log
rake aborted!
undefined method `autoload_paths' for #<Rails::Configuration:0x2b69f163f2e0>
(See full trace by running task with --trace)
thrmtwon@3m2.net [~/rails/mephisto]#
WTF is goin on!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I did every single step and did it exactly like i was suposed to!!! What is going on :(!!!
phprocket
10-24-2006, 08:22 AM
I just thought I would updated what worked for me.. from Matt's article.. just incase someone else wants to search the forum and matt decides to change the url or delete the article.. :)
First Login to SSH, when your logged in you will be in the root of your shared hosting account.. then follow the directions below that I got from here..
http://blog.matharvard.com/2006/9/21/mephisto-subversion
mkdir src
Next, we’ll navigate to the directory we just created.
cd src
Once in the directory, we’ll download Subversion 1.3.2 from Subversion.Tigris.org. The uncompress the tar.gz file into a new directory and navigate to it.
wget http://subversion.tigris.org/downloads/subversion-1.3.2.tar.gz
tar -xzvf subversion-1.3.2.tar.gz
cd subversion-1.3.2
With Subversion downloaded, we can now go ahead and install it. Execute each command one after the other, these will take a while and output a lot of data to the console, just be patient.
./configure --prefix=$HOME --without-berkeley-db --with-zlib --with-ssl
make
make install
Since creating the SVN was all I really cared about, that's why I posted it here..
Now.. being a newbie.. I need to setup a a place for my project..
I want all my projects in a single file folder, so I nameded it "svn" of course..
so from my account root I typed
mkdir svn
This created a directory called svn..
Next I needed to create a project folder.. so you have to do this with svnadmin like this..
svnadmin create svn/projectname
This created a project folder with all the goodie stuff inside it called "projectname" you can name the folder anything you like.. I did this for example..
Ok, I got a place to put the all my php scripts for that project.. Next.. I need to learn how to put all the code into revision 1.
If anybody has a different place to put the projects please let me know.. I am just a newbie with svn working with linux.. :) I usually use devguard.com with a pretty gui html interface... :)
aceofspades
10-24-2006, 08:30 AM
So that it all i need to do to install subversion. After I do that how do i access it???
Btw what is memphisto???
phprocket
10-24-2006, 09:31 AM
Hi, ACE
I am kinda learning as I go....
So far I have not been able to input any code..
I need to learn how to port over existing projects from devguard.com to my newly created SVN I just installed.
Also how to imort new projects starting from revision 1.. :)
I guess I have been taking the very easy way and using devguard.com and my Windows Tortoise version.. but I am tring to figure it out..
Here is what I am reading....
http://svnbook.red-bean.com/en/1.1/ch05.html
It looks promising... :)
Also I been doing a lot of these calls
svn --help
and
svnadmin --help
type commands tring to figure it all out.. If I find out before you I will post it for sure.. It would be great if someone else could chime in and lead us the way.. :)
We may can only access it via SSH but maybe there is a way to automate it so we don't have to log into the java version on the control panel it self.. I am still doing research on the subject.. :D
dorvo
10-24-2006, 12:38 PM
I just tried to install SVN using these instructions, but my problem arises when I enter "make install". It fails with permission denied when it tries to create "/usr/local/".
Would a prepackaged binary work, instead of compiling the source code?
Edit: Ok. Nevermind. I forgot to add --prefix=$HOME during the configuration. :)
phprocket
10-24-2006, 01:21 PM
I just tried to install SVN using these instructions, but my problem arises when I enter "make install". It fails with permission denied when it tries to create "/usr/local/".
Would a prepackaged binary work, instead of compiling the source code?
I am not sure.. it works for me.. I used the exact docs listed above and it worked for me.. I tried installing a newer version and it did not work... before.
Tortoise has a place to use an ssh client as a tunnel
Here is a url for dream host.. that uses Tortoise via SSH+SSL
http://wiki.dreamhost.com/index.php/TortoiseSVN_using_Putty_sessions
I found a cheat sheet how to access SVN
http://www.abbeyworkshop.com/howto/misc/svn01/
I have been testing for hours.. to get the key for putty ssl to work.. If you can generate the key and the server accepts it I bet it would work.. But it always prompts me to type in the password and always rejects the key.. I have tried generating keys 2 ways.. one thru the java SSL in the control panel with the handy SSH gen pass.
Here would be a url that you could put in Tortoise
svn+ssh://youraccount@yourdotcom/home/youraccount/path/to/svn/
like my account is phprocke and my domain is phprocket.com
svn+ssh://phprocke@phprocket.com/home/phprocke/svn/projectname
projectname is the name of the project I done for testing.
Nothing works as of yet but I am still trying... :) I might have to try another SSH client..
dorvo
10-24-2006, 01:40 PM
I got up until the point where I'm attempting to populate the mephisto database. When I run this line:
rake RAILS_ENV=production db:bootstrap
It gives me the following errors:
mkdir -p /home/dorvounl/rails/mephisto/config/../log
rake aborted!
undefined method `autoload_paths' for #<Rails::Configuration:0x2aeb2aca1970>
(See full trace by running task with --trace)
I'm wondering, in the database.yml file, if I need to prefix my database and username with "dorvounl_".
aceofspades
10-24-2006, 03:46 PM
you do but that isnt the problem. It is something else. But for future refrence always prefix your username and database.
Thanks PHPRocket but I how do i access the SVN via Tortiose. That is my biggest problem. I really want to install mephisto but that **** error is pissing me off.
I also trying to access SVN via Tortoise to just keep a repository of my web-projects and images. Please do let us know if any of you are successfully in getting svn+ssh:// to work.
aceofspades
10-24-2006, 06:32 PM
i really wish i could install memphiso.
dorvo
10-24-2006, 06:34 PM
Any ideas what could be the problem, Ace?
aceofspades
10-24-2006, 07:04 PM
I have no clue it doesnt seem to be an error in memphisto. What is the goin on.
undefined method `autoload_paths' for #<Rails::Configuration:0x2aeb2aca1970>
What a strange error. 'autoload_paths'. Anyone know what to do:
dorvo
10-24-2006, 07:11 PM
It's really strange, considering I followed the instructions.
dorvo
10-24-2006, 07:56 PM
If mephisto is causing such a problem, is it even needed?
After all, if you can get subversion installed, isn't that what you were trying to accomplish?
aceofspades
10-25-2006, 08:41 AM
but if you cant use subversion what are we trying to acomplish?
dorvo
10-25-2006, 02:07 PM
After I installed subversion, and before installing mephisto, I've been able to run svn commands. I haven't tried running it from a client like TortoiseSVN yet though.
aceofspades
10-25-2006, 05:18 PM
If you cant us it with tortoise SVN it is virtually useless. Because you cant just give people SSH access. I want to be able to create accounts and be able to let people access it. I really want to install mephisto.
Subversion is worthless if your the only one using it. Than your better off jyust uploading the files if you are the only changing it.
dorvo
10-25-2006, 07:31 PM
I plan on getting SVN to work for multiple users. I just haven't figured out how to set that up yet.
aceofspades
10-26-2006, 04:02 AM
yah that is my main issue. All im saying is that SVN without multiple users is basically worthless. SVN is made for the sole purpose of colaboration.
dougnukem
10-26-2006, 10:17 AM
Is there any way to install subversion on a bluehost account, and configure it with apache to use an HTTP interface instead of the SSH interface. I really want to use Subversion but I need to be able to setup an HTTP interface to it.
SSH access would be fine if it were only me, but I have other people that I want to create accounts for and set them up with SVN access.
If I missed it somewhere in the thread postings I aplogize there were alot of them so I wasn't able to dig through it all.
aceofspades
10-26-2006, 11:09 AM
that is why we are trying to install memphisto but something ist working right. Memphisto is a program for accessing a SVN database.
dorvo
10-26-2006, 06:54 PM
Ace,
I found a link that says that error message we keep getting doesn't mean anything.
http://mephisto.stikipad.com/help/show/Installing+Mephisto
Look under the Quick Install section, in the middle of the page.
dorvo
10-26-2006, 07:43 PM
It's strange though. My mephisto database isn't even getting populated, and I keep getting a "500 Internal Server Error" when I try to access the subdomain I created the symbolic link for.
dorvo
10-26-2006, 08:42 PM
Alright, I was able to get the database to be populated. It required an additional change in "config/environment.rb".
I needed to change the following line:
config.autoload_paths += %W( #{RAILS_ROOT}/app/cachers )
To:
config.load_paths += %W( #{RAILS_ROOT}/app/cachers )
I still get the 500 Internal Server Error when trying to navigate to the admin folder, however. So, it's at least one step closer.
Got this to work...
http://blog.matharvard.com/2006/9/21/mephisto-subversion
However, this...
ln -s /home/USERNAME/rails/mephisto /home/USERNAME/public_html/blog
should be
ln -s /home/USERNAME/rails/mephisto/public /home/USERNAME/public_html/blog
(I think) if you want to access it like:
http://blog.yourdomain.com/admin
...Now what to do w/ these two (Mephisto and SVN)? Pointers/tips would be greatly appreciated. TIA
dorvo
10-27-2006, 06:40 AM
Now, I seem to keep getting this:
Application error
Rails application failed to start properly"
dorvo
10-27-2006, 07:13 AM
Alrighty. It's working now.
For some reason, my changes to dispatch.cgi weren't taking effect, so it was looking for ruby in the wrong directory.
Now, to figure out how this thing works. :D
aceofspades
10-30-2006, 06:37 AM
thanks a lot im going to try an do it now!
aceofspades
10-30-2006, 06:42 PM
It Works Yay!!!!
mansfiem
11-04-2006, 07:02 AM
I keep getting a 404 error when trying to setup Mephisto. I have followed the direction on Mat Harvard's site and also with some of the revisions to that tutorial here in the forum and still cannot get this to work. Any ideas? I did have a problem getting the time zoe gem being recognized, but I doubt that has caused Mephisto not to work.
aceofspades
11-04-2006, 07:13 PM
you have to switch around the enviorment to not be autoload. That is about it. Check if you database is populated if it isnt than that is the problem.
mansfiem
11-04-2006, 07:19 PM
I have everything correctly installed, but I keep getting this when I try and run the rake rake RAILS_ENV=production db:bootstrap...Does anyone know why I keep getting this? I have uploaded everything locally and also downloaded it according to several tutorials, but nothing seems to work.
================================================== ==============================
You are missing the tzinfo gem. Please install it before proceeding.
If you can't install on your server:
gem install tzinfo (from your local machine)
rake gems:freeze GEM=tzinfo (from the mephisto directory)
Now, upload the vendor/tzinfo-0.3.1 folder with the rest of Mephisto.'
================================================== ==============================
rake aborted!
no such file to load -- tzinfo
I was able to get svn 1.4.2 to configure and make once installing apr and apr-util 1.2.7 and supplying them to the configure script, but make install failed with:
/usr/bin/ld: cannot find -laprutil-1
I'm not sure why, since libarputil-1.so, .a, and .sa were built under my aprutil-1.2.7/.libs directory, but modifying my LD_LIBRARY_PATH or LDFLAGS didn't appear to help the 'make install'.
I had the same problem with 1.3.2 as well.
Sorry about not telling about the changed URL to my tut, I definetly don't check in the forums enough :( I'll be experimenting with SVN 1.4.0 and if it works than i'll write an updated article for that one, otherwise this one works just fine if you are using 1.3.2: article (http://blog.matharvard.com/2006/9/21/mephisto-subversion)
I keep getting a 404 error when trying to setup Mephisto. I have followed the direction on Mat Harvard's site and also with some of the revisions to that tutorial here in the forum and still cannot get this to work. Any ideas? I did have a problem getting the time zoe gem being recognized, but I doubt that has caused Mephisto not to work.
Hey, this might be because it was written for mephisto 0.6.2 :( I'm working on new guides for both Subversion 1.4.x and Mephisto 0.7.x. Not sure when they will be up though, if it's an emergency you can PM me and I can help you install it.
If you want to installed Subversion 1.4.2 you can use this guide: Installing Subversion (http://blog.matharvard.com/2006/11/16/installing-subversion). Hope it helps. A Mephisto 0.7.x one is still being written.
aceofspades
11-15-2006, 06:37 PM
what is so specail about mephisto i thought it was an SVN management system or something. Mat do you know of any good server-side subversion management system. So people can manage subversion with a browser interface.
Mephisto is a blogging engine written in Ruby, that's it (though it is one of the best blogs out there for simplicity). I don't know any server side SVN management tools, there are some programs that can hook up to pre-existing repos like svnX (apple.com) or tortioes (turtle, don't know how to spell that...) from the Subversion website. To create a repo in svn you just need to use the svnadmin create /path/to/repo command and that's it. Here's a svn browser if your interested, just need to set it up to the path of your repo https://bssvnbrowser.bountysource.com
aceofspades
11-15-2006, 08:15 PM
oh cool that helps. I just dont know how to use tortise SVN with bluehost. And how do i make other svn accounts. That is the biggest issue.
Once you create a repository with the svnadmin command you need to edit the files inside the conf directory, there should be a users file and a password file, both are documented well. The Subversion website has a guide on how to do this, should be under the "FAQ" section.
aceofspades
11-16-2006, 07:32 PM
oh ok thanks for the help. I just wanna be able to evantually move my sourceforge subversion over to bluehost. But that wont be any time soon.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.