There has been a utility floating around to change a Lotus Notes database's replica id for some time. I recently migrated a company to AIX 5.3 from another platform to run Domino 7.0.2. Here is a simple HOWTO get up and running to compile with the Notes API on AIX 5.3.
Upload the NotesApi tool kit from the Lotus Developer Domain (under toolkits). 
Uncompress and extract the tar file to /yourmount/notesapi 
Make sure the notes user owns these files and any links 
chown –r notes:notes /yourmount/notesapi 
Create a link under /opt/ibm/lotus 
cd /opt/ibm/lotus 
ln -s /yourmount/notesapi notesapi 
chown notes:notes notesapi 
Change to the notes user with their profile 
su - notes
Create a script to set all the environment variables 
server:/home/notes$ cat setenv 
#!/usr/bin/ksh 
LOTUS=/opt/ibm/lotus; export LOTUS 
NOTES_DATA_DIR=/yourmount/domino/data; export NOTES_DATA_DIR 
Notes_ExecDirectory=$LOTUS/notes/latest/ibmpow; export Notes_ExecDirectory 
PATH=$PATH:$NOTES_DATA_DIR:$Notes_ExecDirectory; export PATH 
Source the file before running any compilations 
server:/home/notes$ . setenv 
compile the intro sample as a test 
cd /yourmount/notesapi/sample/basic/intro 
make -f aix.mak 
You can now compile any notesapi program.
The chrepid.c example is available for download here:
chrepid.c
chrepid make
chrepid compiled program
 
No comments:
Post a Comment