Installing Lattice Diamond on Ubuntu 18.04

Use Alien to convert the rpm to a Debian package:

alien --scripts diamond_3_10-base_x64-111-2-x86_64-linux.rpm 
diamond-3-10-base-x64_3.10-112_amd64.deb generated

Use dpkg to install the resulting deb package:

root@xps13:~# dpkg -i diamond-3-10-base-x64_3.10-112_amd64.deb 
Selecting previously unselected package diamond-3-10-base-x64.
(Reading database … 232711 files and directories currently installed.)
Preparing to unpack diamond-3-10-base-x64_3.10-112_amd64.deb …
Checking configuration of machine xps13…
Installing Diamond 3.10 Base…
Unpacking diamond-3-10-base-x64 (3.10-112) …
Setting up diamond-3-10-base-x64 (3.10-112) …
Extracting compressed data files…

Use alien to convert the service pack(s) to Debian Packages, if you see things like “bad interpreter” then you may need to install things like csh, here is an example below:

alien --scripts diamond_3_10-sp3_x64-144-3-x86_64-linux.rpm
diamond-3-10-sp3-x64_3.10-145_amd64.deb generated

root@xps13:~# dpkg -i diamond-3-10-sp3-x64_3.10-145_amd64.deb
Selecting previously unselected package diamond-3-10-sp3-x64.
(Reading database … 239294 files and directories currently installed.)
Preparing to unpack diamond-3-10-sp3-x64_3.10-145_amd64.deb …
Installing Diamond 3.10 SP 3…
Unpacking diamond-3-10-sp3-x64 (3.10-145) …
Setting up diamond-3-10-sp3-x64 (3.10-145) …
/var/lib/dpkg/info/diamond-3-10-sp3-x64.postinst: /usr/local/diamond/3.10_x64/sp/cp_pack: /bin/csh: bad interpreter: No such file or directory
Processing triggers for libc-bin (2.27-3ubuntu1) …

fail. …so install csh and try again:

root@xps13:~# apt install csh
Reading package lists… Done
Building dependency tree 
Reading state information… Done
The following NEW packages will be installed:
csh
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 243 kB of archives.
After this operation, 358 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic/universe amd64 csh amd64 20110502-3 [243 kB]
Fetched 243 kB in 1s (405 kB/s)
Selecting previously unselected package csh.
(Reading database … 248012 files and directories currently installed.)
Preparing to unpack …/csh_20110502-3_amd64.deb …
Unpacking csh (20110502-3) …
Processing triggers for man-db (2.8.3-2ubuntu0.1) …
Setting up csh (20110502-3) …
update-alternatives: using /bin/bsd-csh to provide /bin/csh (csh) in auto mode


root@xps13:~# dpkg -i diamond-3-10-sp3-x64_3.10-145_amd64.deb 
(Reading database … 248021 files and directories currently installed.)
Preparing to unpack diamond-3-10-sp3-x64_3.10-145_amd64.deb …
Uninstalling Diamond 3.10 SP 3…
Installing Diamond 3.10 SP 3…
Unpacking diamond-3-10-sp3-x64 (3.10-145) over (3.10-145) …
Setting up diamond-3-10-sp3-x64 (3.10-145) …
Processing triggers for libc-bin (2.27-3ubuntu1) …

That did it for me, look in /usr/local/diamond. Enjoy! Personally I hate IDEs so I tend to use vi for all but trivial editing sessions but it works.