Apr 10, 2014

DraftSight and Ubuntu 14.04 LTS 64-bit

Ubuntu 14.04 LTS is the new LTS version of Ubuntu and it will be available on its final state later this month. 64-bit  LTS versions are ideal for someone who wants to built a modern CAD workstation but unfortunately DraftSight comes on a 32-bit version only. Ubuntu provides support for running 32-bit applications on a 64-bit OS but DraftSight's installer doesn't support this functionality which is known as multiarch support. However the installation of DraftSight on a 64-bit Ubuntu 14.04 LTS system is possible with a few tweaks.
DraftSight actually needs some 32bit libraries to be installed as well, in order to install and run it successfully. This was easy in older versions of Ubuntu. You only had to install ia32-libs with your package manager. However, ia32-libs are no longer available on Ubuntu. So you need to determine which 32bit libraries you need and install them manually. This happens because DraftSight's installer doesn't come with a complete list of dependencies. If its dependencies list was complete you would be able to install it without problems on a 64bit Ubuntu system (that's the point of multiarch support).

So in order to install DraftSight on 64 bit Ubuntu 14.04 LTS you have to do the following:

  • Install Synaptic and GDebi:
This step is optional but these two programs will make your life easier. Synaptic is an advanced package manager and GDebi is an application for the installation of standalone .deb files.

  • Install the necessary 32bit libraries:
DraftSight needs some 32bit libraries in order to run the installer. That's why you need to install some packages before you run the installer. So open Synaptic and install the following packages.

libgtk2.0-0:i386
libcanberra-gtk-module:i386
libaudio2:i386
libstdc++6:i386
libglu1-mesa:i386
libgl1-mesa-glx:i386

 Without some extra 32bit libraries DraftSight will fail to install

Of course DraftSight needs more 32bit libraries in order to run but these will be installed automatically by installing the above packages. In order to install these libraries with Synaptic you have to use its search tool to find the above packages. Then you have to right click on the package you want to install and select the option "Mark for Installation". Once you have complete this process for all the above packages click on Apply button to proceed with the installation of all the necessary libraries.
Notice for users of binary graphics drivers:
If you install the drivers provided by the official Ubuntu repositories you will not face any problems. However, if you are used to install these drivers manually by downloading them from vendor's website don''t forget to install also the 32-bit compatibility drivers. Usually the installer asks about installing these drivers (This affects mainly Nvidia users).

  • Modify DraftSight's installer:
Now you have to remove xdg-utils from the list of DraftSight's dependencies because it causes an error during the installation. Before you start, move draftSight.deb into your Home folder. So you have to:
  1.  Open a terminal (Ctrl+Alt+T)
  2. Execute ar x draftSight.deb control.tar.gz
  3. Unzip the control.tar.gz compressed archive
  4. Move into the control folder and open control file
  5. Delete xdg-utils and save the file. Be careful with the syntax of this file. If you don't know how to keep the correct syntax of this file visit this link.
  6. Ctrl+A to select all the files inside the control file
  7. Right click and select Compress
  8. Compress the selected files as control.tar.gz and choose to save it inside your Home folder. You will be prompted to overwrite the existing archive.
  9. Go back to the terminal and execute ar r draftSight.deb control.tar.gz

Modifying DraftSight's installer
  • Install DraftSight
Now you are ready to install DraftSight on your Ubuntu 14.04 LTS 64-bit system. You have to use GDebi or the terminal in order to install DraftSight correctly.

Enjoy!!!
 Finally it works with Ubuntu 14.04 LTS 64-bit

With a few tweaks you can apply the default desktop's theme.


13 comments:

  1. Hi.
    Which tweaks did you do to apply Ubuntu's default desktop theme to Draftsight? Thanks in advance.
    Martin

    ReplyDelete
    Replies
    1. It's a little bit tricky so I will write a new detailed post about it.
      It will be ready probably next week.

      Delete
  2. what if most of the libs doesn't appears the i386 option on synaptic filter? =/

    ReplyDelete
    Replies
    1. Synaptic has filters in order to locate easily your available packages.
      Filters are categorized so you have to select from the right pane Architecture--> arch:i386 as a filter in order to find them.

      Delete
  3. selecting libgl1-mesa-glx:i386 in Synaptic, it wants to uninstall a bunch of packages, namely:

    xserver-common-lts-raring deinstall
    ubuntu-desktop deinstall
    xserver-xorg-input-all-lts-raring deinstall
    xserver-xorg-video-vmware-lts-raring deinstall
    xserver-xorg-video-modesetting-lts-raring deinstall
    xserver-xorg-video-ati-lts-raring deinstall
    xserver-xorg-video-r128-lts-raring deinstall
    xserver-xorg-video-nouveau-lts-raring deinstall
    xserver-xorg-input-mouse-lts-raring deinstall
    xserver-xorg-core install
    x11-xserver-utils-lts-raring deinstall
    xserver-xorg-input-evdev-lts-raring deinstall
    xserver-xorg-video-all-lts-raring deinstall
    libgl1-mesa-glx install
    libgl1-mesa-glx:i386 install
    xserver-xorg-video-cirrus-lts-raring deinstall
    xserver-xorg-input-synaptics-lts-raring deinstall
    libgl1-mesa-glx-lts-raring deinstall
    libgl1-mesa-glx-lts-raring:i386 deinstall
    libglapi-mesa install
    libglapi-mesa:i386 install
    xserver-xorg-video-mach64-lts-raring deinstall
    xserver-xorg-video-s3-lts-raring deinstall
    xserver-xorg-video-vesa-lts-raring deinstall
    xserver-xorg-video-tdfx-lts-raring deinstall
    xserver-xorg-video-sisusb-lts-raring deinstall
    xserver-xorg-video-radeon-lts-raring deinstall
    xserver-xorg-video-trident-lts-raring deinstall
    libxatracker1-lts-raring deinstall
    xserver-xorg-input-evdev install
    xserver-xorg-input-wacom-lts-raring deinstall
    xserver-xorg-video-mga-lts-raring deinstall
    libgl1-mesa-dri-lts-raring deinstall
    libgl1-mesa-dri-lts-raring:i386 deinstall
    xserver-xorg-lts-raring deinstall
    xserver-xorg-video-fbdev-lts-raring deinstall
    xserver-xorg-core-lts-raring deinstall
    xserver-xorg-input-vmmouse-lts-raring deinstall
    xorg deinstall
    xserver-xorg-video-neomagic-lts-raring deinstall
    xserver-xorg-video-openchrome-lts-raring deinstall
    xserver-xorg-video-sis-lts-raring deinstall
    xserver-xorg-video-savage-lts-raring deinstall
    xserver-xorg-video-intel-lts-raring deinstall
    libglapi-mesa-lts-raring deinstall
    libglapi-mesa-lts-raring:i386 deinstall
    xserver-xorg-video-siliconmotion-lts-raring deinstall

    'sudo apt-get install libgl1-mesa-glx:i386' fails due to unsatisfied depenencies:

    I seguenti pacchetti hanno dipendenze non soddisfatte:
    libgl1-mesa-glx:i386 : Dipende: libglapi-mesa:i386 (= 8.0.4-0ubuntu0.7)
    Raccomanda: libgl1-mesa-dri:i386 (>= 7.2)

    running Ubuntu 12.04:amd64 with linux-generic-lts-saucy-eol-upgrade kernel
    some i386 libraries are already installed due to Skype

    as libgl1-mesa-glx-lts-raring:i386 is already installed I will try leaving that instead of libgl1-mesa-glx:i386 and update

    ReplyDelete
    Replies
    1. I confirm that leaving libgl1-mesa-glx-lts-raring:i386 instead of libgl1-mesa-glx:i386 works fine.

      thank you for the guide

      Delete
    2. You need one version of libgl1-mesa-glx:i386 to be installed in your computer. If you already have an updated package ( in your case libgl1-mesa-glx-lts-raring:i386) you don't need to install any other libgl1-mesa-glx package

      Delete
  4. it worked! :) as a charm, on debian wheezy
    thanks

    ReplyDelete
  5. In synaptic I can not find:
    libcanberra-gtk-module:i386

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. Easy way to install draftSight without modifying draftSight.deb package: http://askubuntu.com/a/466562/95068

    I tested on my Linux Mint 17 64 bit (which is based on Ubuntu 14.04) machine:
    Just run
    $ sudo apt-get install libuuid1:i386 libice6:i386 libsm6:i386 libxt6:i386 libaudio2:i386 libgtk2.0-0:i386 libcanberra-gtk-module:i386 libcanberra-gtk0:i386 libglu1-mesa:i386
    When the above command finished, double click on downloaded "draftSight.deb" and everything went fine.

    ReplyDelete
  8. I was looking for a good reason to update from Kubuntu 12.04 to 14.04. Thanks for giving me a definitive reason to stick with 12.04.

    ReplyDelete