<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss'><id>tag:blogger.com,1999:blog-5024591540909710704</id><updated>2009-08-22T05:46:12.037-07:00</updated><title type='text'>adventures with wikitect</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://adventureswithwikitect.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5024591540909710704/posts/default'/><link rel='alternate' type='text/html' href='http://adventureswithwikitect.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>dilgreen</name><uri>http://www.blogger.com/profile/13263244594803032017</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5024591540909710704.post-733765139100963316</id><published>2007-08-15T11:23:00.000-07:00</published><updated>2007-08-16T05:44:53.816-07:00</updated><title type='text'>'git'ting wikitect</title><content type='html'>PROJECT: install wikitect onto my &lt;a href="http://www.dilgreenarchitect.co.uk/"&gt;domain&lt;/a&gt;, which is on a commercial server (at the excellent &lt;a href="http://www.penguin-uk.com/"&gt;Penguin&lt;/a&gt; service), using my mac os X 10.4 machine.&lt;span style="font-style: italic;font-size:85%;" &gt; [Linux users, the wikitect page may be enough, and the steps below may be similar. I know nothing of windows, I'm afraid - please add a (polite!) comment if you do!]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote style="font-style: italic;"&gt;&lt;span style="font-size:85%;"&gt;Please note, I am not a computer professional, hacker, coder - some of this may seem very simplistic to some, but may be greek to others. Some of it I understand, other bits have been 'parrot fashion'. Feel free to &lt;a href="mailto:dilgreen@dilgreenarchitect.co.uk"&gt;contact me&lt;/a&gt; if it doesn't work for you - but be aware of my limitations!&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;I'm assuming you've got here via some rational process, and that you'll have some idea of what wikitect is. If not, you may want to learn more - you could look &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;&lt;a href="http://consideredcorrespondence.blogspot.com/2007/07/proposition.html"&gt;here&lt;/a&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt; or &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;&lt;a href="http://www.aboutus.org/wikitect"&gt;here&lt;/a&gt;&lt;a href="http://consideredcorrespondence.blogspot.com/2007/07/proposition.html"&gt;&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;I start my quest at the &lt;a href="http://www.aboutus.org/wikitect"&gt;wikitect&lt;/a&gt; page of AboutUs. The '&lt;a href="http://www.aboutus.org/wikitect#What_We_Have"&gt;What We Have'&lt;/a&gt; segment there has the critical info on accessing the current wikitect code. Version control is handled by something called '&lt;span style="font-style: italic;"&gt;git&lt;/span&gt;', an instance of which needs to be installed on my machine, so that it can talk to the git server on the source site.&lt;br /&gt;&lt;br /&gt;So I need to install '&lt;span style="font-style: italic;"&gt;git&lt;/span&gt;' . I found some useful instructions &lt;a href="http://funkaoshi.com/blog/building-git-on-mac-os-x"&gt;here&lt;/a&gt;. Please look at them (open in a new tab):&lt;br /&gt;&lt;ul&gt;&lt;li&gt;download the &lt;span style="font-style: italic;"&gt;‘expat’&lt;/span&gt; utility from &lt;a href="http://sourceforge.net/projects/expat/"&gt;sourceforge&lt;/a&gt; as instructed.&lt;/li&gt;&lt;/ul&gt;make sure you don’t let &lt;span style="font-style: italic;"&gt;Stuffit&lt;/span&gt; unpack the .tar.gz file, just save it to disk. Remember or find  the location you saved it into.&lt;br /&gt;&lt;br /&gt;Next, you will be using the &lt;span style="font-style: italic;"&gt;Terminal’&lt;/span&gt;application - found in applications/utilities&lt;br /&gt;&lt;br /&gt;Following the  &lt;a href="http://funkaoshi.com/blog/building-git-on-mac-os-x"&gt;same instructions&lt;/a&gt;: you may need to create the &lt;span style="font-weight: bold;"&gt;~/.bash_login&lt;/span&gt; file, if it doesn’t exist:&lt;br /&gt;[I used ‘pico’]&lt;br /&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;$ pico .bash_login&lt;/blockquote&gt;then add the line:&lt;br /&gt;&lt;blockquote&gt;export PATH="/usr/local/bin:$PATH&lt;/blockquote&gt;ctrl-O to save&lt;br /&gt;ctrl-X to exit&lt;br /&gt;quit from ‘Terminal’&lt;br /&gt;restart ‘Terminal’&lt;br /&gt;use ‘cd’ to get to the directory which &lt;span style="font-style: italic;"&gt;expat&lt;/span&gt; was downloaded into. Follow the instructions some more:&lt;br /&gt;&lt;blockquote&gt;tar xvzf expat-2.0.1.tar.gz&lt;br /&gt;cd expat-2.0.1&lt;br /&gt;./configure --prefix=/usr/local&lt;/blockquote&gt;Oh-oh! At this stage, I got these error messages from ‘configure’&lt;br /&gt;&lt;blockquote&gt;checking for gcc... no&lt;br /&gt;checking for cc... no&lt;br /&gt;checking for cc... no&lt;br /&gt;checking for cl... no&lt;br /&gt;configure: error: no acceptable C compiler found in $PATH&lt;br /&gt;See `config.log' for more details.&lt;/blockquote&gt;The problem was that I didn’t install Apple's ‘Xcode’ tools when I installed the OS, so I went and did this from my original system disks - separate install process from OS X.&lt;br /&gt;&lt;blockquote style="font-style: italic;"&gt;&lt;span style="font-size:85%;"&gt;IF YOU DON’T HAVE AN X-CODE DISK:&lt;br /&gt;go here: http://developer.apple.com/tools/download/&lt;br /&gt;and make a free registration (click ‘not a member’), then make the (enormous) download of the Xcode .dmg&lt;/span&gt;&lt;/blockquote&gt;Try again:&lt;span class="on" style="display: block;" id="formatbar_CreateLink" title="Link" onmouseover="ButtonHoverOn(this);" onmouseout="ButtonHoverOff(this);" onmouseup="" onmousedown="CheckFormatting(event);FormatbarButton('richeditorframe', this, 8);ButtonMouseDown(this);"&gt;&lt;/span&gt;&lt;blockquote&gt;./configure --prefix=/usr/local&lt;/blockquote&gt;Success! So continuing on:&lt;blockquote&gt;make&lt;br /&gt;sudo make install&lt;/blockquote&gt;Done with installing &lt;span style="font-style: italic;"&gt;expat&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Now, go and download &lt;span style="font-style: italic;"&gt;‘git’&lt;/span&gt; from its &lt;a href="http://git.or.cz/"&gt;source page&lt;/a&gt;.&lt;br /&gt;Next, unpack and install -&lt;br /&gt;use ‘cd’ to get to the directory you downloaded into.&lt;br /&gt;&lt;blockquote&gt;tar xvzf git-1.5.2.4.tar.gz&lt;br /&gt;cd git-1.5.2.4&lt;br /&gt;make configure&lt;br /&gt;./configure --prefix=/usr/local&lt;br /&gt;make all&lt;br /&gt;sudo make install&lt;/blockquote&gt;Done with installing &lt;span style="font-style: italic;"&gt;git&lt;/span&gt;. Your machine now has git as part of its application set, and can talk to the git server that holds the wikitect source code:&lt;br /&gt;&lt;br /&gt;Still in Terminal, follow the steps from the &lt;a href="http://www.aboutus.org/wikitect#What_We_Have"&gt;Wikitect page&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;I omitted this next step - this assumes you want to serve the wikitect up from your own local machine - this is fine, but you won't be able to share it unless your machine acts as a web server, and mine doesn't. In theory, this is straightforward on Mac OS X, once you turn on 'personal web sharing' in the system preferences&gt;sharing pane, but I haven't figured out how to get my browser to access the scripts.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;dl&gt;&lt;dd style="font-style: italic;"&gt;&lt;span style="font-size:85%;"&gt;cd public_html&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;All I want to do is get the source code, so here goes:&lt;br /&gt;&lt;dl&gt;&lt;dd&gt; git clone git://c2.com/wikitect.git&lt;/dd&gt;&lt;dt&gt;It works - although the first time it failed as the remote server didn't seem to want to respond - I tried again a minute later, and got my own little wikitect folder.&lt;/dt&gt;&lt;/dl&gt;Because I want my domain host machine to serve the wikitect, I need to upload the files to them. I used an ftp client called &lt;span style="font-style: italic;"&gt;Transmit&lt;/span&gt; - there are many others [my hosting service also offers an upload facility as part of the site administration tools]. You will need to know where to put files of type 'cgi-bin' (Wikitect is a set of PERL scripts) on your server for them to be accessible. I think this is likely to vary widely, but my  service (Linux based), needs them to go into &lt;span style="font-style: italic;"&gt;/var/www/cgi-bin&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;The next step is all about permissions - because wikitect makes and modifies files, and this is normally disallowed for web-sites, we need to change the permissions to allow it to do its stuff. We need to do this on your hosting machine, not your local machine, so we're finished with &lt;span style="font-style: italic;"&gt;Terminal&lt;/span&gt;.&lt;br /&gt; If the host is a &lt;span style="font-style: italic;"&gt;linux&lt;/span&gt; system, and you have command line access, then the next command may be all that you need. &lt;span class="on" style="display: block;" id="formatbar_CreateLink" title="Link" onmouseover="ButtonHoverOn(this);" onmouseout="ButtonHoverOff(this);" onmouseup="" onmousedown="CheckFormatting(event);FormatbarButton('richeditorframe', this, 8);ButtonMouseDown(this);"&gt;&lt;/span&gt;&lt;dl&gt;&lt;dd&gt; chmod 755 wikitect wikitect/*.cgi&lt;/dd&gt;&lt;/dl&gt;My hosting service doesn't allow me this sort of access - for excellent security reasons, I'm sure. The site administration tool does allow permissions to be altered, but only one file at a time. The helpful &lt;a href="http://www.penguin-uk.com/"&gt;Penguin&lt;/a&gt;s told me that most ftp clients have tools for altering permissions, and indeed, Transmit does have an excellent tool - hidden away as a 'get info' menu item. so that's how I did it. If your system doesn't do permissions as numeric (the '755' in the command line above), then here is how it translates into the Read, Write, eXecute (rwx) mode:&lt;br /&gt;&lt;br /&gt;User or Owner:    7    =    rwx    = Yes for read, yes for write, yes for execute&lt;br /&gt;Group:                  5    =    r-x    = Yes for read, no for write, yes for execute&lt;br /&gt;Other:                   5    =    r-x    = Yes for read, no for write, yes for execute&lt;br /&gt;&lt;br /&gt;[For more information on linux/unix permissions, you could look &lt;a href="http://dmiessler.com/study/unixlinux_permissions/"&gt;here&lt;/a&gt;]&lt;br /&gt;&lt;dl&gt;&lt;dt&gt;&lt;span style="font-size:180%;"&gt;&lt;span style="font-weight: bold;"&gt;And now, you've done it! Congratulations!&lt;/span&gt;&lt;/span&gt;&lt;/dt&gt;&lt;/dl&gt;But there's one last problem. How will you access wikitect from a browser? Well, apparently this depends on the host system, again. you may need help from them. I'm embarrassed to say that I needed help from the &lt;a href="http://www.penguin-uk.com/"&gt;Penguin&lt;/a&gt;s to come up with this:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dilgreenarchitect.co.uk/cgi-bin/wikitect/index.cgi"&gt;http://www.dilgreenarchitect.co.uk/cgi-bin/wikitect/index.cgi&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Obvious, really.&lt;br /&gt;&lt;br /&gt;Well, that's all for now. Next project is to set up an empty wikitect and start rolling my own.&lt;br /&gt;Don't hold your breath.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5024591540909710704-733765139100963316?l=adventureswithwikitect.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adventureswithwikitect.blogspot.com/feeds/733765139100963316/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=5024591540909710704&amp;postID=733765139100963316' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5024591540909710704/posts/default/733765139100963316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5024591540909710704/posts/default/733765139100963316'/><link rel='alternate' type='text/html' href='http://adventureswithwikitect.blogspot.com/2007/08/gitting-wikitect.html' title='&apos;git&apos;ting wikitect'/><author><name>dilgreen</name><uri>http://www.blogger.com/profile/13263244594803032017</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='18292785691505553062'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry></feed>