Install kicad

Asked by hmnrobots

I was used to kicad under windows XP ; With the end of XP I decided to move to ubuntu. I installed ubuntu a few weeks ago.
really goodand easy so far but I'm unabled to install ubuntu from the script; I tried several times and every times I get :
Téléchargements$ ./kicad-install.sh --install-or-update
./kicad-install.sh: ligne 1: Erreur de syntaxe près du symbole inattendu « newline »
./kicad-install.sh: ligne 1: `<?xml version="1.0"?>'

and the script stop !
what am i doing wrong ?
thanks in advance ;

Question information

Language:
English Edit question
Status:
Solved
For:
KiCad Edit question
Assignee:
No assignee Edit question
Solved by:
Dick Hollenbeck
Solved:
Last query:
Last reply:
Revision history for this message
hmnrobots (hmnrobots) said :
#1

I 've got to add that I'm with ubuntu 14.04

Revision history for this message
hmnrobots (hmnrobots) said :
#2

further more
I decided to start all again from a brand new trusty tahr. So I'm now re-installing ubunty 14.04 and I try to install kicad from the easiest way (ubuntu app manager)

Revision history for this message
hmnrobots (hmnrobots) said :
#3

So I re-installed trusty : ok then i installed kicad from ubuntu app and the result is worse than ever : kicad doen't start at all!

Revision history for this message
Maciej Suminski (orsonmmz) said :
#4

Do you mean ppa? If so, which one? Is there any output if you try to run kicad from a terminal?

Regards,
Orson

Revision history for this message
hmnrobots (hmnrobots) said :
#5

No I don't mean ppa , Sorry to still be a newbie in ubuntu; I installed kicad from the Ubuntu launchpad, as I thought it's the easiest way : just click and play ! but I'm very disappointed because this time kicad is installed but doesn't start when I click on it.
any idea ?
I would be so happy to recover the use of kicad! I did a test on another PC with Ubuntu 14.04 and the best results ,including printing, was with running the windows version of kicad with wine ; except for the network access.
So far I've been unable to compile kicad (too hard for me)

Revision history for this message
Maciej Suminski (orsonmmz) said :
#6

Sorry, I am not very familiar with new ways of installing software in Ubuntu, the latest I can recall is Synaptic.
What does happen when you run 'kicad' from a terminal? Do you know what is the version of KiCad that you have installed?

Regards,
Orson

Revision history for this message
hmnrobots (hmnrobots) said :
#7

the version I installed is : kicad 0.20131208+bzr4024-1

Dammned : eeschema started from a terminal , so why isn'it starting from it's icone ?

I just add a component (capacitor) and launch Cvpcb : Cvpcb cant't find any of the modules libraries.

thanks for help

Revision history for this message
hmnrobots (hmnrobots) said :
#8

pcbnew has the same issue with the modules

Revision history for this message
Dick Hollenbeck (dickelbeck) said :
#9

On 08/10/2014 03:21 PM, hmnrobots wrote:
> New question #252908 on KiCad:
> https://answers.launchpad.net/kicad/+question/252908
>
> I was used to kicad under windows XP ; With the end of XP I decided to move to ubuntu.

Congratulations. Start by learning the command line and tools like

1) wget
2) less
3) cp
4) mkdir

So that you can do a successful download, file listing, file copy, create directory, etc.

> I installed ubuntu a few weeks ago.
> really goodand easy so far but I'm unabled to install ubuntu from the script; I tried several times and every times I get :
> Téléchargements$ ./kicad-install.sh --install-or-update
> ./kicad-install.sh: ligne 1: Erreur de syntaxe près du symbole inattendu « newline »
> ./kicad-install.sh: ligne 1: `<?xml version="1.0"?>'

>
> and the script stop !
> what am i doing wrong ?

Incorrectly downloading the script.

The script has no such line as <?xml version="1.0"?> in it.

Walk before you run. The Ubuntu experience will not be satisfying until you know the
basics of the command line.

To download the build script you would do this:

$ cd ~
$ wget
http://bazaar.launchpad.net/~kicad-product-committers/kicad/product/download/head:/kicadinstall.sh-20131017152909-uyumxtw74s418lqr-1/kicad-install.sh

$ less kicad-install.sh

If you don't understand those commands, then it is too early to try running KiCad IMO.

> thanks in advance ;
>

Revision history for this message
hmnrobots (hmnrobots) said :
#10

you're wright , I'm may be going too fast but Ubuntu seems so easy as long as you stay with the standard app.
About the command line , as I'm a bit old , I was used to DOS and it helps but surely not enough.

now I added the repository and re install , it works but only when I start it from a terminal. I have now the latest release.
Now the main remaining problem is that Cvpcb and Pcbnew are missing the footprint

Revision history for this message
hmnrobots (hmnrobots) said :
#11

in pcbnew when I try to add a device I get this warning message

Erreurs trouvées en chargement des empreintes
IO_ERROR: Impossible d'analyser l'URL:
<${KIGITHUB}/Buzzers_Beepers.pretty>
from /build/buildd/kicad-0.201408101831+5062~15~ubuntu14.04.1/kicad/pcbnew/github/github_plugin.cpp : remote_get_zip() : line 507

Revision history for this message
hmnrobots (hmnrobots) said :
#12

Ok I got it : I downloaded (the good way this time) the install file and following the instructions the script started but failed at the step 5
step 5) checking out the documentation from launchpad repo...
bzr: ERROR: No such file: 'http://bazaar.launchpad.net/~kicad-developers/kicad/doc/.bzr/repository/pack-names'

Is there a reported bug at this level ?

Revision history for this message
hmnrobots (hmnrobots) said :
#13

should I put off the step 5 from the script as it deals only with the doc?

Revision history for this message
Dick Hollenbeck (dickelbeck) said :
#14

On 08/11/2014 01:42 PM, hmnrobots wrote:
> Question #252908 on KiCad changed:
> https://answers.launchpad.net/kicad/+question/252908
>
> hmnrobots gave more information on the question:
> in pcbnew when I try to add a device I get this warning message
>
> Erreurs trouvées en chargement des empreintes
> IO_ERROR: Impossible d'analyser l'URL:
> <${KIGITHUB}/Buzzers_Beepers.pretty>
> from /build/buildd/kicad-0.201408101831+5062~15~ubuntu14.04.1/kicad/pcbnew/github/github_plugin.cpp : remote_get_zip() : line 507
>

The KiCad stuff in the ubuntu repo is so old that it ain't worth talking about. And I won't.

Hopefully someone else can help you.

Revision history for this message
hmnrobots (hmnrobots) said :
#15

without doing anything I retry to start the script; much faster this time but stop once again at step 5 :

step 5) checking out the documentation from launchpad repo...
bzr: ERROR: No WorkingTree exists for "file:///home/hmn/kicad_sources/kicad-doc.bzr/.bzr/checkout/".

Revision history for this message
Dick Hollenbeck (dickelbeck) said :
#16

On 08/11/2014 03:26 PM, hmnrobots wrote:
> Question #252908 on KiCad changed:
> https://answers.launchpad.net/kicad/+question/252908
>
> hmnrobots gave more information on the question:
> should I put off the step 5 from the script as it deals only with the
> doc?
>

Yes, you can comment it out for now, and try again at a different time of day when
internet traffic is less. If you are in Europe this might mean try early in the morning.

The error is unique, it smells of a timeout at the launchpad server or something.

Revision history for this message
Dick Hollenbeck (dickelbeck) said :
#17

On 08/11/2014 03:37 PM, hmnrobots wrote:
> Question #252908 on KiCad changed:
> https://answers.launchpad.net/kicad/+question/252908
>
> Status: Answered => Open
>
> hmnrobots is still having a problem:
> without doing anything I retry to start the script; much faster this
> time but stop once again at step 5 :
>
> step 5) checking out the documentation from launchpad repo...
> bzr: ERROR: No WorkingTree exists for "file:///home/hmn/kicad_sources/kicad-doc.bzr/.bzr/checkout/".
>

Again, you will only succeed on linux if you understand. It is not a platform for grandma
or grandpa unless they are willing to google, learn a little bash command line stuff.

Download the "Advanced Bash Scripting" guide *.pdf file. Find it by googling.

Looking at line 244 of the script, you see there a test

    if [ ! -d "$WORKING_TREES/kicad-doc.bzr" ]; then

This causes bzr checkout if the directory exists. Your directory is damaged, and you must
delete that directory before you try again in the morning.

$ man rmdir

Revision history for this message
Dick Hollenbeck (dickelbeck) said :
#18

On 08/11/2014 03:37 PM, hmnrobots wrote:
> Question #252908 on KiCad changed:
> https://answers.launchpad.net/kicad/+question/252908
>
> Status: Answered => Open
>
> hmnrobots is still having a problem:
> without doing anything I retry to start the script; much faster this
> time but stop once again at step 5 :
>
> step 5) checking out the documentation from launchpad repo...
> bzr: ERROR: No WorkingTree exists for "file:///home/hmn/kicad_sources/kicad-doc.bzr/.bzr/checkout/".
>

I get the same error here. Now it looks like someone or something damaged the docs REPO.

Can somebody look into this please?

Somebody probably did a push rather than a checkin, and pushed crap.

Revision history for this message
hmnrobots (hmnrobots) said :
#19

I erased the install and tried again but the script stopped again at step 5

Revision history for this message
Dick Hollenbeck (dickelbeck) said :
#20

On 08/11/2014 04:46 PM, hmnrobots wrote:
> Question #252908 on KiCad changed:
> https://answers.launchpad.net/kicad/+question/252908
>
> Status: Answered => Open
>
> hmnrobots is still having a problem:
> I erased the install and tried again

You did good. I also got the same error at 5 PM CDT.

But somebody reported it working since then, and for me now it looks like its working.
Maybe somebody fixed the repo, or it is not consistently reliable.

Suggest trying again in your morning.

 but the script stopped again at
> step 5
>

Revision history for this message
hmnrobots (hmnrobots) said :
#21

I took off the step 5 and ran the script again; it compiled the software but failed at step 10:
step 10) installing documentation...
removing directory build
CMake Error: The source directory "/home/hmn/kicad_sources/kicad-doc.bzr" does not appear to contain CMakeLists.txt.

still trouble with the documentation

try to start kicad from terminal : eeschema is working well (as before) still having problems with modules when starting Cvpcb

Revision history for this message
hmnrobots (hmnrobots) said :
#22

 the directory /kicad-doc.bzr exists but is hidden ; could it be a reason ?

Revision history for this message
hmnrobots (hmnrobots) said :
#23

would you believe it , it works ! I deleted (as requested) the /kicad-doc.bzr directory and launch the script and the script went all the way to the end.
the only way to start kicad is still for the terminal.
At the first launch of kicad , I had the library error window when starting Cvpbc.
after reboot these message doesn't appear any more.

so it seems to be all good except how to start kicad from the desktop ?
any idea ?

thanks to all for help

Revision history for this message
hmnrobots (hmnrobots) said :
#24

after a complete reset , I started kicad from a terminal , everything seems to working well.
when stopping kicad there is still a warning message in the terminal saying :

*** Error in `kicad': corrupted double-linked list: 0x0000000002f925f0 ***
Abandon (core dumped)

Revision history for this message
Dick Hollenbeck (dickelbeck) said :
#25

On 08/12/2014 08:42 AM, hmnrobots wrote:
> Question #252908 on KiCad changed:
> https://answers.launchpad.net/kicad/+question/252908
>
> hmnrobots gave more information on the question:
> would you believe it , it works ! I deleted (as requested) the /kicad-doc.bzr directory and launch the script and the script went all the way to the end.
> the only way to start kicad is still for the terminal.
> At the first launch of kicad , I had the library error window when starting Cvpbc.
> after reboot these message doesn't appear any more.

The reboot allowed the environment variables being set in /etc/profile.d/kicad.sh to take
effect. Your footprint table

   ~/fp-lib-table

uses some environment variables.

>
> so it seems to be all good except how to start kicad from the desktop ?
> any idea ?

No, works for me from the Applications menu. You could inject an interposing script and
point your shortcut to that, just to verify that it is being launched OK.

Put some echo statement in there like:

echo 'I am here' > /tmp/script-out.txt

in your script.

> thanks to all for help

My name is Dick.

Revision history for this message
Dick Hollenbeck (dickelbeck) said :
#26

On 08/12/2014 08:56 AM, hmnrobots wrote:
> Question #252908 on KiCad changed:
> https://answers.launchpad.net/kicad/+question/252908
>
> hmnrobots gave more information on the question:
> after a complete reset , I started kicad from a terminal , everything seems to working well.
> when stopping kicad there is still a warning message in the terminal saying :
>
> *** Error in `kicad': corrupted double-linked list: 0x0000000002f925f0 ***
> Abandon (core dumped)
>

The script is set to build version 5054 on line 41.

Soon we'll have something even better, hang tight.

Upgrading then will simply be matter of changing line 41 to

REVISION=$TESTING

And re-running it.

It is not yet time.

Dick

Revision history for this message
Best Dick Hollenbeck (dickelbeck) said :
#27

On 08/12/2014 08:56 AM, hmnrobots wrote:
> Question #252908 on KiCad changed:
> https://answers.launchpad.net/kicad/+question/252908
>
> hmnrobots gave more information on the question:
> after a complete reset , I started kicad from a terminal , everything seems to working well.
> when stopping kicad there is still a warning message in the terminal saying :
>
> *** Error in `kicad': corrupted double-linked list: 0x0000000002f925f0 ***
> Abandon (core dumped)
>

Make sure you've uninstalled ALL the original kicad* packages from Ubuntu's package
manager. Doing this now, if you have not done it before, could damage the files installed
by the script, so be prepared to re-run that after uninstalling the packages.

Revision history for this message
hmnrobots (hmnrobots) said :
#28

Ok I solved the startup problem, first I created a link to kicad but now after rebooting once again , the original icone from the launcher is working well.

So I consider my install issue solved.

Many thanks to all and I will keep on trying to learn some more, it's a long way from windows to linux ....
Best regards