<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I posted here a few weeks ago about building modules. What I have learned in the past two weeks has been wonderful. So I thought I would put it all together for any others out there who are interested in using the Mac to develop Sword modules. If anyone sees any problems or clarifications, please feel free to add or clarify. If you try this on your computer and run into a snag, please post as well. These commands worked for me on my G5 iMac (PPC)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Here is the process for building the tools that you will need to turn text files into modules.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">1. Install the developers tools from Apple (this should come uninstalled on your Mac or on a CD or DVD when you buy the System.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">2. Download the latest version of Sword (<A href="http://www.crosswire.org/ftpmirror/pub/sword/source/v1.5/sword-1.5.9.tar.gz"><FONT class="Apple-style-span" color="#002BF0">http://www.crosswire.org/ftpmirror/pub/sword/source/v1.5/sword-1.5.9.tar.gz</FONT></A>)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-style-span">3. Open Terminal and create a new directory (<B>mkdir /sword</B>) then copy your download to that directory (for example <B>mv</B> <B>~/Desktop/sword-1.5.9.tar.gz /sword </B>. (this step could be done in the Finder as well and may be more comfortable. The end result should be a folder entitled "sword-1.5.9 in the directory you have created)</SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-style-span">4. Untar the download (<B>tar -xzf sword-1.5.9.tar.gz</B> <B>/sword</B><B>/sword-1.5.9</B>) (if you did the previous step in the finder, when you open up the terminal you need to make sure you navigate to the right directory: <B>cd /sword</B>)</SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">5. Change to this directory (<B>cd /sword/sword-1.5.9</B>)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">6. Configure the installation (<B>./configure --prefix=/sword/sword-1.5.9</B>) (by the way, that's <hyphen> <hyphen> prefix)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-style-span">7. Run the <I>make</I> command and then <I>make install</I> (<B>make && make install</B>). These two commands can also be run separately. If the directory where you are installing is not public (for example <B>/opt/..</B> then you would have to run the second command as a root user.</SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">You should now find a directory with the Sword project compiled for your Mac. In the /bin folder you will find the tools that you need to build modules or even edit modules. (to run the mod2* commands, you must have the modules installed in this folder, and not just in your MacSword folder). Double clicking the tools should run them empty in the terminal and give you some short instructions for their use. Check the module making guide on <A href="http://www.crosswire.org">www.crosswire.org</A> for further instructions. At this point you should have everything you need to download formatted files (from CCEL for example) and turn them into Sword modules.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">However, if you are going to create your own files, you will have one more problem. The Mac treats line endings differently from other versions of *NIX. That means that the tools will not read your import file correctly, even though it looks like it is the correct format. The problem is very easy to fix. First of all, you can see if your file has a problem by typing the following command in the terminal: vi ~/Desktop/your_file.txt If you see M-s at the end of the lines, then you have Mac line breaks. Type the following command> <FONT class="Apple-style-span" color="#000933" face="Verdana" size="3"><SPAN class="Apple-style-span" style="font-size: 11.9px;">perl -pi -e 's/\r/\n/g' <filename>. <FONT class="Apple-style-span" color="#000000" face="Helvetica" size="3"><SPAN class="Apple-style-span" style="font-size: 12px;">This should solve your problem and allow you to use the import or vpl tool without problems. (This information was taken from <A href="http://www.macosxhints.com/article.php?story=20001206164827794">http://www.macosxhints.com/article.php?story=20001206164827794</A>)</SPAN></FONT></SPAN></FONT></DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>David Bell</DIV><DIV><A href="mailto:david.bell@bluebottle.com">david.bell@bluebottle.com</A></DIV><DIV>parati semper en MMVI dare omni rationem de ea quae en me est spe</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN></SPAN> </DIV><BR></BODY></HTML>