Changes

1,080 bytes added ,  00:08, 8 May 2021
added Ubuntu installation instructions
Line 26: Line 26:  
| MD5 checksums for Linux installers
 
| MD5 checksums for Linux installers
 
|}
 
|}
 +
 +
== Installation ==
 +
 +
=== Ubuntu 20.04 (focal) ===
 +
 +
You can use the <code>alien</code> utility to convert the <code>.rpm</code> to a <code>.deb</code> suitable for installation under Ubuntu. If you don't want to install it globally, you can instead use <code>rpm2cpio</code> and <code>rpm</code> to extract the RPM contents and view the post-install script that needs to be run.
 +
 +
<pre># unpack the RPM
 +
mkdir ~/apps/diamond
 +
cd ~/apps/diamond
 +
rpm2cpio ~/Downloads/diamond_3_12-base-240-2-x86_64-linux.rpm | cpio -idmv
 +
 +
# run the relevant commands from the post install script
 +
export RPM_INSTALL_PREFIX=~/apps/diamond/usr/local
 +
rpm -qp --scripts ~/Downloads/diamond_3_12-base-240-2-x86_64-linux.rpm | sed -n '/^postinstall scriptlet/,${p;/^preuninstall scriptlet/q}' - | grep tar | source /dev/stdin</pre>
 +
 +
The following online guides are useful:
 +
 +
* [https://ycnrg.org/lattice-diamond-on-ubuntu-16-04/ Lattice Diamond on Ubuntu 16.04]
 +
* [http://timallen.name/index.php/2019/01/14/installing-lattice-diamond-on-ubuntu-18-04/ Installing Lattice Diamond on Ubuntu 18.04 – Tim E Allen]
    
== Online Resources ==
 
== Online Resources ==