Opening QCAD 3.4.6 from Terminal in Ubuntu 14.04

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
RayArdia
Full Member
Posts: 90
Joined: Mon Aug 11, 2008 6:57 pm
Location: NW Spain

Opening QCAD 3.4.6 from Terminal in Ubuntu 14.04

Post by RayArdia » Sun Feb 14, 2016 9:49 pm

I seem to be stuck - AGAIN, so sorry to be such a nuisance.
When I try to open QCAD from Terminal I get this output:-

ray@ray-Aspire-5735:~$ cd qcad-3.4.6-linux-x86_32
ray@ray-Aspire-5735:~/qcad-3.4.6-linux-x86_32$ ./qcad
bash: ./qcad: Permission denied
ray@ray-Aspire-5735:~/qcad-3.4.6-linux-x86_32$ sudo ./qcad
[sudo] password for ray:
sudo: ./qcad: command not found

Command 'ls' produces:-

ray@ray-Aspire-5735:~/qcad-3.4.6-linux-x86_32$ ls
bbox libqcadstemmer.so libQtTest.so.4
dwg2bmp libQtCLucene.so.4 libQtWebKit.so.4
dwg2pdf libQtCore.so.4 libQtXmlPatterns.so.4
dwg2svg libQtDBus.so.4 libQtXml.so.4
examples libQtDeclarative.so.4 libraries
fonts libQtDesignerComponents.so.4 libspatialindexnavel.so
libfreetype.readme libQtDesigner.so.4 patterns
libfreetype.so.6 libQtGui.so.4 plugins
libqcadcore.so libQtHelp.so.4 qcad
libqcadecmaapi.so libQtMultimedia.so.4 qcad-bin
libqcadentity.so libQtNetwork.so.4 qcad_icon.png
libqcadgrid.so libQtOpenGL.so.4 readme.txt
libqcadgui.so libQtScript.so.4 scripts
libqcadoperations.so libQtScriptTools.so.4 ts
libqcadsnap.so libQtSql.so.4
libqcadspatialindex.so libQtSvg.so.4

Can you help me please?

User avatar
andrew
Site Admin
Posts: 9058
Joined: Fri Mar 30, 2007 6:07 am

Re: Opening QCAD 3.4.6 from Terminal in Ubuntu 14.04

Post by andrew » Mon Feb 15, 2016 9:31 am

First, please check that you have downloaded an installed the correct package (32bit or 64bit):

Code: Select all

uname -m
'x86_64' means you're on a 64bit Linux system.
'i686' means you're on a 32bit system.

I assume you have downloaded and extracted the .tar.gz package. When doing so, you have to make sure that permissions are not lost:
- Extract the archive as regular user (not as root)
- Extract the archive with the following command:

Code: Select all

tar xfvz qcad-3.4.6-linux-x86_32.tar.gz
You can find very detailed instructions for installing QCAD under Linux at:
http://www.qcad.org/en/component/conten ... tion-linux

RayArdia
Full Member
Posts: 90
Joined: Mon Aug 11, 2008 6:57 pm
Location: NW Spain

Re: Opening QCAD 3.4.6 from Terminal in Ubuntu 14.04

Post by RayArdia » Mon Feb 15, 2016 2:15 pm

Decided to start again! Bought 3.12.6 Pro as my old one was well out of date.
When I tried your fix above with the old 3.4.6 got qcad running OK but after downloading the new Pro version I got this output:-
ray@ray-Aspire-5735:~$ tar xfvz qcad-3.12.6-pro-linux-x86_32.tar.gz

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
What am I doing wrong?

User avatar
andrew
Site Admin
Posts: 9058
Joined: Fri Mar 30, 2007 6:07 am

Re: Opening QCAD 3.4.6 from Terminal in Ubuntu 14.04

Post by andrew » Mon Feb 15, 2016 2:48 pm

The downloaded file is not complete or corrupt. Just some wild guesses: download not yet complete, download interrupted or disk full?

The complete file size should be:

Code: Select all

ls -la qcad-3.12.6-pro-linux-x86_32.tar.gz
-rw-r--r--  1 ...  ...  88691969 Jan 28 17:49 qcad-3.12.6-pro-linux-x86_32.tar.gz
And the checksum:

Code: Select all

md5sum qcad-3.12.6-pro-linux-x86_32.tar.gz
78987fe83e26124a1ab9a16e95bd4a16

RayArdia
Full Member
Posts: 90
Joined: Mon Aug 11, 2008 6:57 pm
Location: NW Spain

Re: Opening QCAD 3.4.6 from Terminal in Ubuntu 14.04

Post by RayArdia » Mon Feb 15, 2016 3:45 pm

Downloaded again, file size and checksum correct.
After input of 'tar xfvz qcad-3.12.6-pro-linux-x86_32.tar.gz', and after loading stopped I did:-

ray@ray-Aspire-5735:~$ ./qcad
bash: ./qcad: No such file or directory

What should I have done to get QCAD to open?

User avatar
andrew
Site Admin
Posts: 9058
Joined: Fri Mar 30, 2007 6:07 am

Re: Opening QCAD 3.4.6 from Terminal in Ubuntu 14.04

Post by andrew » Mon Feb 15, 2016 3:50 pm

Code: Select all

cd qcad-3.12.6-pro-linux-x86_32
./qcad

RayArdia
Full Member
Posts: 90
Joined: Mon Aug 11, 2008 6:57 pm
Location: NW Spain

Re: Opening QCAD 3.4.6 from Terminal in Ubuntu 14.04

Post by RayArdia » Mon Feb 15, 2016 10:02 pm

Many thanks Andrew, consider my bacon saved!
Ray

Post Reply

Return to “QCAD 'How Do I' Questions”