Difference between revisions of "One person's experience with installing mx"

From mx Help Wiki
Jump to: navigation, search
(New page: need developer's tools install mysql (and startup) - make sure to secure mkdir src (to make a directory called 'src') cd src (change directory into 'src') cd ~ vi .bash_login (look for t...)
 
Line 1: Line 1:
need developer's tools
+
This is my experience with installing mx on my laptop (Apple Powerbook), so I can edit it/customize it. Here's what you need:
install mysql (and startup) - make sure to secure
+
  
mkdir src (to make a directory called 'src')
+
== Apple's developer tools ==
cd src (change directory into 'src')
+
  
cd ~
+
You need developer's tools, and it's easy to get them. They should be on the start-up disk you got with your mac. Otherwise you can get them [http://developer.apple.com/tools/ here]
vi .bash_login
+
You'll need to create an account if you don't have one already. The download is pretty straightforward. try this first:
(look for this line: 'export PATH="/usr/local/bin:/usr/local/sbin:$PATH"'
+
should be at the end of the file (if file exists); if not, hit 'i' to insert, paste the line in there, hit 'escape', then type ':wq')
+
[make sure terminal settings are "Execute this comman (specify complete path):" with '/bin/bash' in the text box
+
open a new terminal and type "echo $PATH"
+
  
--------
+
gcc -v
  
installing Readline:
+
If you see something other than 'command not found' you're probably ok.
  
curl -O ftp://ftp.gnu.org/gnu/readline/readline-5.1.tar.gz
+
== MySQL ==
tar xzvf readline-5.1.tar.gz
+
cd readline-5.1
+
./configure --prefix=/usr/local
+
make
+
sudo make install
+
cd ..
+
  
-------
+
Another straightforward download (I used this [http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-standard-5.0.27-osx10.4-powerpc.dmg/from/http://mysql.mirrors.hoobly.com/ link]). Make sure you install MySQL, the MySQL start-up item, and the MySQL.prefPane. You will also want to [[secure your mysql]].
  
installing gems:
+
== bash login ==
  
curl -O http://rubyforge-files.ruby-forum.com/rubygems/rubygems-0.9.0.tgz
+
Make sure you have the bash login fiel set up correctly. Open a terminal window and type the following at the prompt (prompt$):
tar xzvf rubygems-0.9.0.tgz
+
cd rubygems-0.9.0
+
sudo ruby setup.rb
+
cd ..
+
  
sudo gem install rails --include-dependencies
+
vi .bash_login
  
-----
+
Now look for this line: export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
install svn (or click on svn link? - http://subversion.tigris.org/servlets/NewsItemView?newsItemID=1755)
+
  
------
+
It should be at the end of the file (if file exists); if not, hit the i key to insert, paste the line in there, hit the escape key, and then type (don't include the quotes): ':wq'
  
svn co svn+ssh://website.edu/Volumes/data/svn/mx
+
Open a new terminal window and type:
  
---
+
echo $PATH
  
from db directory do:
+
You should see this:
mysql -u root -p
+
GRANT ALL PRIVILEGES ON mx_development.* TO 'mx'@'localhost' IDENTIFIED BY 'MmmXxx';
+
create database mx_development;
+
use mx_development;
+
source tables.sql;
+
  
[get copy of data]
+
/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/usr/local/mysql/bin
  
quit mysql, and from dumps directory type:
+
== terminal settings ==
rake restore file=data.sql
+
 
 +
If terminal is open check your preferences (Terminal -> preferences). Make sure the 'When creating a new Terminal window' settings are set to "Execute this command (specify complete path):" with '/bin/bash' in the text box.
 +
 
 +
== Readline ==
 +
 
 +
To install Redline open a terminal window and type these commands one by one:
 +
 
 +
  curl -O ftp://ftp.gnu.org/gnu/readline/readline-5.1.tar.gz
 +
  tar xzvf readline-5.1.tar.gz
 +
  cd readline-5.1
 +
  ./configure --prefix=/usr/local
 +
  make
 +
  sudo make install
 +
  cd ..
 +
 
 +
== RubyGems ==
 +
 
 +
To install RubyGems open a terminal window (or keep using the one you've been using) and use these commands:
 +
 
 +
curl -O http://rubyforge-files.ruby-forum.com/rubygems/rubygems-0.9.0.tgz
 +
tar xzvf rubygems-0.9.0.tgz
 +
cd rubygems-0.9.0
 +
sudo ruby setup.rb
 +
cd ..
 +
 
 +
== Rails ==
 +
 
 +
To install RubyGems open a terminal window (or keep using the one you've been using) and use this command:
 +
 
 +
sudo gem install rails --include-dependencies
 +
 
 +
And also install RedCloth:
 +
 
 +
sudo gem install redcloth
 +
 
 +
== SVN ==
 +
 
 +
You probably also want to install SVN (a.k.a. [http://subversion.tigris.org/ Subversion]). I used this [http://subversion.tigris.org/servlets/NewsItemView?newsItemID=1755 link], and the download/install was pretty straight forward.
 +
 
 +
== set up MySQL ==
 +
 
 +
Assuming you have successfully installed mx you'll need to set up your database. Migrate your terminal to the 'db' directory. This command will likely do it:
 +
 
 +
cd ~/mx/trunk/db
 +
 
 +
from db directory use these commands (you should have secured your MySQL first):
 +
 
 +
mysql -u root -p
 +
 
 +
then type these in MySQL (commands always have to end in ';'):
 +
 
 +
GRANT ALL PRIVILEGES ON mx_development.* TO 'mx'@'localhost' IDENTIFIED BY 'MmmXxx';
 +
create database mx_development;
 +
use mx_development;
 +
source tables.sql;
 +
 
 +
If you can get a copy of data that's already in use you can set it up by quitting MySQL and then, in your terminal window type:
 +
 
 +
cd dumps
 +
rake restore file=data.sql

Revision as of 17:11, 22 January 2007

This is my experience with installing mx on my laptop (Apple Powerbook), so I can edit it/customize it. Here's what you need:

Contents

Apple's developer tools

You need developer's tools, and it's easy to get them. They should be on the start-up disk you got with your mac. Otherwise you can get them here You'll need to create an account if you don't have one already. The download is pretty straightforward. try this first:

gcc -v

If you see something other than 'command not found' you're probably ok.

MySQL

Another straightforward download (I used this link). Make sure you install MySQL, the MySQL start-up item, and the MySQL.prefPane. You will also want to secure your mysql.

bash login

Make sure you have the bash login fiel set up correctly. Open a terminal window and type the following at the prompt (prompt$):

vi .bash_login

Now look for this line: export PATH="/usr/local/bin:/usr/local/sbin:$PATH"

It should be at the end of the file (if file exists); if not, hit the i key to insert, paste the line in there, hit the escape key, and then type (don't include the quotes): ':wq'

Open a new terminal window and type:

echo $PATH

You should see this:

/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/usr/local/mysql/bin

terminal settings

If terminal is open check your preferences (Terminal -> preferences). Make sure the 'When creating a new Terminal window' settings are set to "Execute this command (specify complete path):" with '/bin/bash' in the text box.

Readline

To install Redline open a terminal window and type these commands one by one:

 curl -O ftp://ftp.gnu.org/gnu/readline/readline-5.1.tar.gz
 tar xzvf readline-5.1.tar.gz
 cd readline-5.1
 ./configure --prefix=/usr/local
 make
 sudo make install
 cd ..

RubyGems

To install RubyGems open a terminal window (or keep using the one you've been using) and use these commands:

curl -O http://rubyforge-files.ruby-forum.com/rubygems/rubygems-0.9.0.tgz
tar xzvf rubygems-0.9.0.tgz
cd rubygems-0.9.0
sudo ruby setup.rb
cd ..

Rails

To install RubyGems open a terminal window (or keep using the one you've been using) and use this command:

sudo gem install rails --include-dependencies

And also install RedCloth:

sudo gem install redcloth

SVN

You probably also want to install SVN (a.k.a. Subversion). I used this link, and the download/install was pretty straight forward.

set up MySQL

Assuming you have successfully installed mx you'll need to set up your database. Migrate your terminal to the 'db' directory. This command will likely do it:

cd ~/mx/trunk/db 

from db directory use these commands (you should have secured your MySQL first):

mysql -u root -p

then type these in MySQL (commands always have to end in ';'):

GRANT ALL PRIVILEGES ON mx_development.* TO 'mx'@'localhost' IDENTIFIED BY 'MmmXxx';
create database mx_development;
use mx_development;
source tables.sql;

If you can get a copy of data that's already in use you can set it up by quitting MySQL and then, in your terminal window type:

cd dumps
rake restore file=data.sql
Personal tools