Installing the DraftSight Free 2D CAD application in Gentoo Linux
August 8, 2015 1 Comment
I occasionally have to view AutoCAD files and had been using a 2009 version of VariCAD Viewer for Linux, installed from an RPM package using the
rpm command in Gentoo Linux. It was the only version that I could get to work correctly in Gentoo Linux. Versions from more recent years would either not install at all or would install but not run correctly. And the 2009 version of VariCAD Viewer could not open more-recent AutoCAD files. So I had been looking for an alternative for quite a while.
Recently I found out about DraftSight, which is produced by Dassault Systèmes SolidWorks Corp. and is available for Windows, Mac OS and Linux. Apart from the commercial versions DraftSight Professional and DraftSight Enterprise, there is also a free version, DraftSight Free, which is billed as ‘straightforward 2D CAD software for students, hobbyists and other individuals’. I thought this would suit my purposes, as it can read and write DWG and DXF files (see the features page on the DraftSight Web site).
The Gentoo Linux betagarden overlay has ebuilds for releases of DraftSight Free. The package is a proprietary binary package, the Gentoo ebuild is named
media-gfx/draftsight-bin and the current version in the betagarden overlay is 1.6.1_beta.
So I added the betagarden overlay using Layman, downloaded the file
draftSight.deb (DraftSight 2015 beta) from the DraftSight Web site and copied it to
/usr/portage/distfiles/draftsight-1.6.1_beta.deb as specified in the ebuild, and issued the usual
emerge command to merge the package. However the ebuild would not install the package whatever I tried: Portage gave an error message that the
.deb file could not be downloaded (despite it already being in the
distfiles directory). In the end I copied the ebuild and its
files sub-directory to
/usr/local/portage/media-gfx/draftsight-bin/ in my local overlay, disconnected from the network and merged the package:
This worked, and I can now launch DraftSight from the KDE launcher’s menu (the only additional thing I did was to specify an icon myself using the KDE Menu Editor, as the DraftSight entry in the KDE launcher menu was icon-less) or by issuing the command ‘
draftsight‘ from the command line.
DraftSight is a big advance on using an old version of VariCAD Viewer, and I have finally found a decent 2D CAD application to use in Linux.
Update (March 13, 2016): A new version has been released; see my latest post Installing DraftSight 2016 Pre-Release in Gentoo Linux.