This page was last updated on Wednesday, 16-Nov-2016 11:56:23 CST
Installation notes for Structure version 2.3.4 Jul 2012
Home Page
Prerequisites
Support for running 32-bit executables
reference
$ sudo apt-get install libc6-i386
Installation
- Download from
http://pritchardlab.stanford.edu/structure_software/release_versions/v2.3.4/html/structure.html
I manually renamed the downloaded file with the version number, i.e.
$ mv structure_linux_frontend.tar.gz structure_linux_frontend.2.3.4.tar.gz
and I saved this file in /programinstallers/
Note that the console version is a subset of the frontend version, so we don't need to download it.
- $ tar -zxvf /programinstallers/structure_linux_frontend.2.3.4.tar.gz
- $ cd frontend
- $ sudo ./install
Testing default java virtual machine in the system ... OK
Copy files to /usr/local/Structure/ ...
structure v2.3.3 is installed successfully ← I suppose this is a bug, it should say v2.3.4 ☹
- It doesn't tell you that the launcher is still in the current directory, so we need to move it somewhere,
and also rename it to avoid conflict with the command line version
$ sudo cp -puv structure /usr/local/Structure/structurefrontend
- Create a launcher for all users
$ sudo nano /usr/share/applications/Bioinformatics/Structure.desktop
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Name=Structure
Exec=/usr/local/Structure/structurefrontend
Comment=Investigate population structure with multi-locus genotype data
Icon=structure_32.png
Categories=Bioinformatics
- Link to the icon referenced in the launcher, copy to /usr/share/pixmaps/

- Make a symlink in case we want to run command-line version, i.e.
structure is a command in the default PATH for all users
$ ln -s /usr/local/Structure/bin/structure /usr/local/bin/structure
- Copy manual for local web page
$ cp -puv doc/structure_doc.pdf ../web/programs/structure/
- Cleanup
$ cd ..
- $ rm frontend -rf