Upgrade 10.3.9 to 10.4.5
I recently took advantage of my Apple Select
membership hardware discount and purchased a 2.16GHz, 2GB, 100GB-7200rpm Intel
Core Duo MacBook Pro. So, here are the abbreviated notes of what was involved in
moving to that new machine from a Powerbook 1.67GHz running OS X
10.3.9
Here are my "quick and dirty"
notes on the upgrade process........
I recently took advantage of my Apple Select
membership hardware discount and purchased a 2.16GHz, 2GB, 100GB-7200rpm Intel
Core Duo MacBook Pro. So, here are the abbreviated notes of what was involved in
moving to that new machine from a Powerbook 1.67GHz running OS X
10.3.9
OS
Installation
First, on the new machine, I
used the "Transfer My Information" utility presented on first bootup by
following the onscreen instructions, putting my old machine in firewire mode,
etc. This is really a great upgrade feature and saves a lot of time for the
common configuration tasks of a new computer. To my surprise it transfers more
than I expected including my Project Wonder installation and java extensions
whereas I had expected my user files only to come over in the
transfer.
Next ... run Software Update and
do all recommended updates. (That means ones already checked) .... that brought
me up to
10.4.5.
MySQL
OK,
first thing, install latest MySQL .... for me that was 4.1.18 for Intel CPU.
Just run the DMG installer for mysql only first .... forget the startup item for
a while until we get my.cnf
configured.
Next configure my /etc/profile
(for bash classpath) so that it includes mysql command paths. It should look
like this:
$ cat
/etc/profile
# System-wide .profile for
sh(1)
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/mysql/bin:/Users/username/scripts;/opt/local/bin;/opt/local/share/man;/opt/local/share/info"
export
PATH
if [ "${BASH-no}" != "no" ];
then
[ -r /etc/bashrc ] && .
/etc/bashrc
fi
Next
set up the mysql root user:
First launch
mysql
$ sudo
echo
Password:
$
sudo mysqld_safe &
[1]
1212
computername:~ username$ Starting mysqld
daemon with databases from
/usr/local/mysql/data
computername:~
username$
computername:~ username$ cd
/usr/local/
computername:/usr/local username$ ls
-al
total
8
drwxr-xr-x 4 root wheel 136 Mar 24 06:06
.
drwxr-xr-x 9 root wheel 306 Mar 24 06:06
..
lrwxr-xr-x 1 root wheel 44 Mar 24 06:06
mysql ->
mysql-standard-4.1.18-apple-darwin8.3.1-i686
drwxr-xr-x
19 root wheel 646 Jan 28 16:55
mysql-standard-4.1.18-apple-darwin8.3.1-i686
On
fresh install the password is blank for mysql root
user.
computername:/usr/local username$
mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end
with ; or \g.
Your MySQL connection id is 2 to
server version: 4.1.18-standard-log
Type
'help;' or '\h' for help. Type '\c' to clear the
buffer.
mysql>
make a password for root@localhost using
grant all on *.* etc.
grant all on *.* to
root@localhost identified by 'mypasswordhere' with grant
option;
Query OK, 0 rows affected (0.05
sec)
mysql> show
databases;
+----------+
|
Database
|
+----------+
|
mysql |
| test
|
+----------+
2
rows in set (0.09 sec)
Use
mysqldump to bring mysql databases from old mac and reload databases into new
mac.
computername:/usr/local username$
mysqldump -h oldcomputername.local --opt --databases database1 database2
database3 >
~/oldmacdbs.sql
computername:/usr/local
username$ cd ~
computername:~ username$
mysql < oldmacdbs.sql
----------------------------------------
Next
download MySQL Connector/J 3.0.17 or 3.0.XX. DO NOT USE 3.1.17 or 3.1.XX with WO
and MySQL 4.1.
->
Library/Java/Extensions
WebObjects
Next
install XCode tools 2.2.1, -> Customize ..... select WebObjects (and Java
Documentation)
-----------------------------------------
Check
java -version ..... it should be 1.4.2_XX
$ java
-version
java version
"1.4.2_09"
Java(TM) 2 Runtime Environment,
Standard Edition (build 1.4.2_09-239)
Java
HotSpot(TM) Client VM (build 1.4.2-66, mixed
mode)
XCode
Config
- go into the "File Types" Xcode
preferences and tell Xcode to use EOModeler instead of the EOModel plug-in for
.eomodeld files.
- Code Sense - Automatically
Suggets -
Always
EOGenerator
Download
the latest universal binary EOGenerator from RubiCode (version 1.7) and copy to
my ~/Applications directory
This actually
gave problems out of the box with the templates I had been using with version
1.5, specifically with fetchspec auto-generated utility methods. So I took the
opportunity here to revise my templates by merging with features in the new
ones.
Code
Sense
Configure index templates according to
/Developer/Extras/Xcode Index Templates/Index
Templates
Readme.rtf
Apache
Development Mode
WebObjects runs in Direct
Connect out of the box, but we want it to run through Apache for https
development aswell as developing in an environment that is closer to the
deployment scenario.
Edit the
file
sudo pico
/System/Library/StartupItems/WebObjects/WebObjects
and uncomment the wotaskd startup
line
Next, get https working (same
as outlined in this blog before) and, assuming you are using multicast dns
(Bonjour, formerly known as RendezVous) for host urls, use computername.local as
the server name so you can use test your app from other computers' browsers
(Windoze IE for example) on the local network without turning off https in your
development app. You can download Bonjour for Windows form apple.com so the
Windoze PC can see computername.local
host.
WebObjects
Builder
Unicode (UTF-8) is the default for
5.3.1 installation. I changed it to Western (Mac OS Roman) which was the default
for all my existing components.
I also compared
the other WOBuilder preferences and changed most to match the prefs I had in the
old version
.... and that was basically
it.
Posted: Wednesday - April 05, 2006 at 08:45 AM