Difference between revisions of "InstallingAboutUsOnOSX"

(migration import)
 

(21 intermediate revisions by 6 users not shown)



Line 1: Line 1:
 +
{{RightTOC}}
 
==Xcode tools==
 
==Xcode tools==
 
* Available on OS X install DVD or from http://developer.apple.com/tools/xcode/
 
* Available on OS X install DVD or from http://developer.apple.com/tools/xcode/
Line 11: Line 12:
  
 
==MySQL==
 
==MySQL==
Download and install. Make sure you get version 5.0!
+
Download and install version 5.1.
* http://dev.mysql.com/downloads/mysql/5.0.html#macosx-dmg
+
* http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.53-osx10.6-x86_64.tar.gz/from/http://mysql.he.net/
  
 
==Ruby==
 
==Ruby==
Download and install version 1.8.7p174
+
Download and install version 1.8.7p249
* ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p174.tar.gz
+
* ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p249.tar.gz
  
<code>
+
Build:
./configure --prefix=/www
+
  mkdir /www
 
+
  ./configure --prefix=/www
make
+
  make
 
+
  make install
make install
 
  
 
(edit .profile like so:)
 
(edit .profile like so:)
export PATH=/www/bin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:$PATH
+
  export PATH=/www/bin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:$PATH
 
 
</code>
 
  
 
==RubyGems==
 
==RubyGems==
Line 41: Line 39:
 
Run these commands:
 
Run these commands:
  
<code>
+
  sudo port install freeimage
sudo port install freeimage
+
  sudo port install gd2
 +
  gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
  
sudo port install gd2
+
==AboutUs repos==
 +
  mkdir -p /www/aboutus ;
 +
  cd /www/aboutus
 +
  git clone <email>15bb9cd2f75f14e2b92c6ec81bd372cb</email>:AboutUs/compostus.git
 +
  git clone <email>15bb9cd2f75f14e2b92c6ec81bd372cb</email>:AboutUs/electric_sheep.git
 +
  cd /www/aboutus/compostus/compost
 +
  gem install geminstaller
 +
  geminstaller
  
gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
 
  
mkdir -p /www/aboutus
+
==Cassandra==
cd /www/aboutus
+
  mkdir -p /www/compile
 +
  cd /www/compile
 +
  curl -O http://mirror.its.uidaho.edu/pub/apache/incubator/cassandra/0.5.0/apache-cassandra-incubating-0.5.0-bin.tar.gz
 +
  tar xvf apache-cassandra-incubating-0.5.0-bin.tar.gz
 +
  mv apache-cassandra-incubating-0.5.0 /www/cassandra
 +
  cp /www/aboutus/compostus/cassandra/storage-conf.xml.devel /www/cassandra/conf/storage-conf.xml
 +
Running:
 +
  cd /www/cassandra
 +
  ./bin/cassandra
  
git clone <email>15bb9cd2f75f14e2b92c6ec81bd372cb</email>:AboutUs/compostus.git
+
==Configure the app==
  
git clone <email>15bb9cd2f75f14e2b92c6ec81bd372cb</email>:AboutUs/electric_sheep.git
+
* create databases
 +
  mysql -u root
 +
  create database compostus_wiki_test;
 +
  create database compostus_wiki_dev;
 +
  grant all on *.* to wiki@localhost identified by 'wiki';
  
cd /www/aboutus/compostus/compost
+
* install sysop user
 +
  mysql -u root compostus_wiki_dev < ../sysop_user.sql
  
gem install geminstaller
+
* run the build script
 +
  cd /www/aboutus/compostus/compost
 +
  script/build
  
geminstaller
+
* run rake
 
+
  cd /www/aboutus/compostus/compost
</code>
+
  rake db:migrate
 
+
  rake
==Configure the app==
 
 
 
This is a stub. Tasks are:
 
  
* create databases
+
__NOTOC__
* populate databases
 
* run rake
 
* run server
 

Latest revision as of 09:14, 12 November 2013

Xcode tools

Git

MacPorts

Download and install:

MySQL

Download and install version 5.1.

Ruby

Download and install version 1.8.7p249

Build:

 mkdir /www
 ./configure --prefix=/www
 make
 make install

(edit .profile like so:)

 export PATH=/www/bin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:$PATH

RubyGems

Download and install version 1.3.5

ruby setup.rb

Misc. Libraries

Run these commands:

 sudo port install freeimage
 sudo port install gd2
 gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config

AboutUs repos

 mkdir -p /www/aboutus ;
 cd /www/aboutus
 git clone :AboutUs/compostus.git
 git clone :AboutUs/electric_sheep.git
 cd /www/aboutus/compostus/compost
 gem install geminstaller
 geminstaller


Cassandra

 mkdir -p /www/compile
 cd /www/compile
 curl -O http://mirror.its.uidaho.edu/pub/apache/incubator/cassandra/0.5.0/apache-cassandra-incubating-0.5.0-bin.tar.gz
 tar xvf apache-cassandra-incubating-0.5.0-bin.tar.gz
 mv apache-cassandra-incubating-0.5.0 /www/cassandra
 cp /www/aboutus/compostus/cassandra/storage-conf.xml.devel /www/cassandra/conf/storage-conf.xml

Running:

 cd /www/cassandra
 ./bin/cassandra

Configure the app

  • create databases
 mysql -u root
 create database compostus_wiki_test;
 create database compostus_wiki_dev;
 grant all on *.* to wiki@localhost identified by 'wiki';
  • install sysop user
 mysql -u root compostus_wiki_dev 


Retrieved from "http://aboutus.com/index.php?title=InstallingAboutUsOnOSX&oldid=33693903"