User:Magesing/Unigraphics NX
Unigraphics NX
The only current CAD/CAM/CAE package which currently supports linux, They officially only support redhat and SUSE, however, with a little bit of work it can be installed in other linux distros.
The following is what needed to be done in one case to get NX 8.0 working in Arch 4.3.3
Install dependancies
Install the korn shell
The install scripts are written in `ksh` so the korn shell is required to install NX [it is available from AUR](https://aur.archlinux.org/packages/ksh/)
Install libpng12.so.0
[Also available from AUR](https://aur.archlinux.org/packages/libpng12/)
Install libXp.so.6
sudo pacman -S libxp
Unpack the tarball
tar -xvf nx-8.0.0.tar.gz
Modify the install script to work with ARCH
Give yourself write permissions on the install script
chmod u+x ug080/ug_install
Modify the script
Add the following lines after line 95 of `ug080/ug_install`
96 elif $( grep -i "ARCH" /proc/version 1>$NULL 2>&1) ; then # Its Arch. 97 # Not much to do here, just set X11_DEFS_DIR. 98 X11_DEFS_DIR=/usr/share/X11/app-defaults # X11 app-defaults dir.
(I put the line numbers in to make it clear where these lines go in the file, please don't paste them in)
Launch the installer as root
sudo ./nx080/ug_install
Follow the prompts to install NX, make sure that you point NX to a valid license server
The default install prefix /usr/ugs080 is fine,
Link libjpeg and libpng to fake old versions
I can't gaurantee that the new versions of libjpg and libpng are 100% backwards compatible, if you wanted to be sure, you could track down and install the proper versions from source, but the below symlinks will get NX running:
Symlink libjpeg.so.62
sudo ln -sv /usr/lib/libjpeg.so /usr/ugs080/bin/libjpeg.so.62
Create a script to set the environment and launch UG
#!/bin/bash export UGS_LICENSE_SERVER=<port>@<server> export UGS_LICENSE_BUNDLE=NX11110 export UGII_ROOT_DIR=/usr/ugs080/bin export UGII_TMP_DIR=<some_tempdir_you_have_write_access_to> export LD_LIBRARY_PATH=/usr/ugs080/bin:/usr/ugs080/ugcatia:/usr/ugs080/step203ug:/usr/ugs080/step214ug:/usr/ugs080/nxproe:/usr/ugs080/ugto2d:/usr/ugs080/dxfdwg:/usr/ugs080/iges /usr/ugs080/bin/ugii
Run your launch script and enjoy UG under arch linux...