Tag Archives: dependencies

Installing uplug on Linux

Tested on: Xubuntu 12.04 LTS (64-bit) for languages English, German (& French)

  • Install/check for uplug dependencies (libmodule-install-perl is compulsory, others could also be installed through cpan when running make):
  1. sudo apt-get install libmodule-install-perl libxml-parser-perl libxml-simple-perl libfile-sharedir-perl libipc-run-perl
  • Clone latest version from bitbucket repository:
  1. git clone https://bitbucket.org/tiedemann/uplug.git uplug
  • Third-party tools that are not automatically installed:
    • MElt (Tagger for French)
      • Dependencies: sudo apt-get install gawk python-numpy
  • Install individual modules:
cd uplug-XY
perl Makefile.PL
make
sudo make install
  • Install all modules:
cd uplug
make all
sudo make install
make test

Running TextSTAT on Linux

Tested on: Xubuntu 12.04 LTS (64-bit), using default python interpreter (v2.7.3)

[Last update: 04/03/2014]

  • Install/check for TextSTAT dependencies:
  1. sudo apt-get install python-tk
  • Download latest release (check here for latest version number) and run TextSTAT:
  1. mkdir TextSTAT
    cd TextSTAT
    wget http://neon.niederlandistik.fu-berlin.de/static/textstat/TextSTAT-2.9c-source.zip
    unzip TextSTAT-2.9c-source.zip
    chmod +x TextSTAT.pyw
    ./TextSTAT.pyw
  • Download icon and create desktop shortcut (copy-paste [Desktop Entry] into a new file called TextSTAT.desktop on your Desktop, don’t forget to adapt the full path to TextSTAT.pyw and textstat_logo.gif):
  1. wget http://neon.niederlandistik.fu-berlin.de/static/textstat/textstat_logo.gif
  1. [Desktop Entry]
    Version=1.0
    Type=Application
    Name=TextSTAT 2.9c
    Comment=Concordancing Program written in Python
    Exec=/path/to/TextSTAT/TextSTAT.pyw
    Icon=/path/to/TextSTAT/textstat_logo.gif

Installing nltk3 for Python3 in virtual environment on Linux

[Last update: 04/01/2015]

Prerequisites: Install Python and set up virtual environment  & Install pip in virtual environment
Tested on: Xubuntu 12.04 LTS / 13.10 / 14.04 LTS (64-bit) with ActivePython installed in /opt

  • (skip, if activated) Activate the virtual environment you would like to install nltk (v3) in:
  1. cd ~/venv/apy3341
    source bin/activate
  • Use pip to install the latest version of nltk:
  1. (apy3341):~$ pip install -U nltk
  • [January 2015] Workaround for users with setuptools versions >=10 (see NLTK Issue #824):
  1. (apy3341):~$ pip install setuptools==9.1
    (apy3341):~$ pip install -U nltk
  • (skip, if nltk_data already present on system) Start Python interpreter in virtual environment and download nltk_data (corpora, packages & models):
(apy3341) mki@ubuntu:~$ python
ActivePython 3.3.4.1 (ActiveState Software Inc.) based on
Python 3.3.4 (default, Feb 25 2014, 14:59:15) 
[GCC 4.0.2 20051125 (Red Hat 4.0.2-8)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import nltk
>>> nltk.download()

Installing lxml in virtual environment on Linux

Prerequisites: Install Python and set up virtual environment  & Install pip in virtual environment
Tested on: Xubuntu 12.04 LTS / 13.10 / 14.04 LTS (64-bit) with ActivePython installed in /opt

[Last update: 03/07/2014]

  • (skip, if activated) Activate the virtual environment you would like to install lxml in:
  1. cd ~/venv/apy3341
    source bin/activate
  • Install/check for lxml dependencies (for pip to be able to compile lxml from source code):
  1. sudo apt-get install libxml2-dev libxslt1-dev zlib1g zlib1g-dev
  • Use pip to install/update lxml:
  1. bin/pip install -U lxml

Installing ipython in virtual environment on Linux

Prerequisites: Install Python and set up virtual environment  & Install pip in virtual environment
Tested on: Xubuntu 12.04 LTS / 13.10 / 14.04 LTS (64-bit) with ActivePython installed in /opt

[Last update: 03/07/2014]

  • (skip, if activated) Activate the virtual environment you would like to install ipython in:
  1. cd ~/venv/apy3341
    source bin/activate
  • Make sure that readline support is installed in your virtual environment (prerequisite for ipython’s colour prompts).
  • Use pip to install/update readline:
  1. bin/pip install -U ipython

Installing readline support in ActivePython virtual environment on Linux

Prerequisites: Install Python and set up virtual environment  & Install pip in virtual environment
Tested on: Xubuntu 12.04 LTS / 13.10 / 14.04 LTS (64-bit) with ActivePython installed in /opt

[Last update: 03/07/2014]

  • (skip, if activated) Activate the virtual environment you would like to install readline in:
  1. cd ~/venv/apy3341
    source bin/activate
  • Install/check for readline dependencies (for pip to be able to compile readline from source code):
  1. sudo apt-get install libncurses5-dev
  • Use pip to install/update readline:
  1. bin/pip install -U readline

AntConc dependencies on Ubuntu/Xubuntu 64-bit

[Last update: 17/03/2014]

If you try to launch AntConc on an Ubuntu-based 64-bit system, you get the following error message (tested with versions 3.2.4u, 3.3.5u, 3.4.0u and 3.4.1u):

./antconc3.2.4u: No such file or directory
or 
./AntConc: No such file or directory

The minimal dependencies I had to install in order for AntConc to start successfully on Ubuntu 64-bit were the following libraries (tested on Ubuntu 13.10 and Xubuntu 12.04 LTS):

sudo apt-get install libx11-6:i386 libxss1:i386 libxft2:i386

For TurnKey/Debian systems, see this post, for other Linux distributions see ongoing discussion on: https://groups.google.com/forum/#!forum/antconc