Difference between revisions of "Mwreorder"

From Apertium
Jump to navigation Jump to search
Line 7: Line 7:
;Downloading
;Downloading


If you want to download the application:
In order to download the application, open terminal and type the following command:

# open your terminal
# there you must write


<pre>
<pre>
Line 16: Line 13:
</pre>
</pre>


Then wait a few moments and the application should be downloaded in your present working directory (for ex. "Home Folder")
Then wait a few moments and the application should be downloaded to your present working directory (for ex. "~/multiword-reorder")


;Compiling
;Compiling


For this first you will need to go to the folder you have downloaded.
First, navigate to the folder to which multiword-reorder has just been downloaded:
Use:
<pre>
<pre>
cd </path to folder>
cd </path to folder>
</pre>
</pre>


Now before you build the program you will have to configure it first.
Before you build the program you will have to configure it first.
Use:
Use:


Line 33: Line 29:
</pre>
</pre>


In order to run this successfully, couple of libraries needs to be installed in the system. This includes liblttoolbox3-dev, pkg-config libxml2-dev, g++ and automake. Make sure you have these libraries installed - else the process might not complete. You can install these libraries by typing
When you run the command, you'll see lots of messages scrolling on your screen. This is normal and you shouldn't worry about it. If configure finds an error, it complains about it and exits.However, if everything works like it should a Makefile.am will be generated.


<pre>
Now we finally got to building the binary, the executable program, from the source code. This is done by running the make command:
sudo apt-get install [name of the library]
</pre>

After this runs without errors we can move into building the binary, executable program from the source code. This is done by running the make command:


<pre>make</pre>
<pre>make</pre>


Remember that "make" uses the Makefile.am for building the program. Otherwise it doesn't know what to do. This is why it's important to run the configure script successfully (or generate the Makefile some other way).
Remember that "make" uses the Makefile.am for building the program. Otherwise it doesn't know what to do. This is why it's important to run the "sh autogen.sh" successfully (or generate the Makefile some other way).

Now it's time to install the program. When doing this you must be root. If you've done things as a normal user, you can become root with the

<pre>su</pre>


Now it's time to install the program. When doing this you must be root. Do it by executing following command:
command. It'll want your root password and then you're ready for the final step!
When you're root, you can install the program with this command:


<pre>make install</pre>
<pre>sudo make install</pre>


Again, you'll get some weird messages scrolling on the screen. After they stop, congrats: you've installed the software and you're ready to run it!
When this finishes, you will have the software installed and ready to run!


==Multidix reordering file==
==Multidix reordering file==

Revision as of 15:41, 22 December 2010

placeholder page for documentation of mwreorder program

describe what it is for

Installation

Downloading

In order to download the application, open terminal and type the following command:

svn co https://apertium.svn.sourceforge.net/svnroot/apertium/branches/gsoc2010/skh/multiword-reorder 

Then wait a few moments and the application should be downloaded to your present working directory (for ex. "~/multiword-reorder")

Compiling

First, navigate to the folder to which multiword-reorder has just been downloaded:

cd </path to folder>

Before you build the program you will have to configure it first. Use:

sh autogen.sh

In order to run this successfully, couple of libraries needs to be installed in the system. This includes liblttoolbox3-dev, pkg-config libxml2-dev, g++ and automake. Make sure you have these libraries installed - else the process might not complete. You can install these libraries by typing

sudo apt-get install [name of the library]

After this runs without errors we can move into building the binary, executable program from the source code. This is done by running the make command:

make

Remember that "make" uses the Makefile.am for building the program. Otherwise it doesn't know what to do. This is why it's important to run the "sh autogen.sh" successfully (or generate the Makefile some other way).

Now it's time to install the program. When doing this you must be root. Do it by executing following command:

sudo make install

When this finishes, you will have the software installed and ready to run!

Multidix reordering file

how to write a multidix reordering file

Usage

First you need to download and install the pipeline. How to do that see here: http://wiki.apertium.org/wiki/Minimal_installation_from_SVN

If you have any problems with installing it you should see: http://wiki.apertium.org/wiki/Installation_Troubleshooting

how to use the program in a translation pipeline