Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Install fails on Ubuntu
22-07-2016, 10:18 PM, (This post was last modified: 22-07-2016, 10:19 PM by mikronauts.)
#1
Install fails on Ubuntu
Ubuntu 15.04

Linux Epsilon 3.19.0-64-generic #72-Ubuntu SMP Fri Jun 24 15:12:52 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

I suspect it is a permissions problem - dpkg bombs out trying to overwrite udev rules.

Any ideas? I am currently running 11 beta 3, and wanted to upgrade to release.

Code:
 ------------------------------------------------------------
 Pinguino IDE Installation Script
 Regis Blanchot - rblanchot@pinguino.cc
 Last update 09-05-2016
 ------------------------------------------------------------
 Host is a 64-bit GNU/Linux.
 Which release of Pinguino do you want to install ?
 1) Stable  (default)
 2) Testing
 >1
 Which compiler(s) do you want to install ?
 1) none of them (default)
 2) SDCC (PIC18F) only
 3) XC8 (PIC16F and PIC18F) only
 4) GCC (PIC32MX) only
 5) SDCC and XC8 (PIC16F and PIC18F) only
 6) all (SDCC, XC8 and GCC)
 >
 Downloading packages ...
 * stable/pinguino-ide.deb package
 * stable/pinguino-libraries.deb package


 Installing packages ...
 * pinguino-ide.deb package
dpkg: error processing archive pinguino-ide.deb (--install):
 trying to overwrite '/etc/udev/rules.d/41-microchip.rules', which is also in package pinguino-ide 11
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 pinguino-ide.deb
 * pinguino-libraries.deb package......................]
 100% [================================================]

python: can't open file '/opt/pinguino/v11/post_install.py': [Errno 2] No such file or directory
 Do you want to launch the IDE ?
 1) Yes (default)
 2) No
 >
python: can't open file '/opt/pinguino/v11/pinguino.py': [Errno 2] No such file or directory
Reply
23-07-2016, 07:59 AM, (This post was last modified: 23-07-2016, 08:01 AM by pingotg.)
#2
RE: Install fails on Ubuntu
Does it work if you remove the old one first?

(I've never tried it, as I prefer to install by git / tar / unzip / etc.)

John
Reply
25-07-2016, 11:46 PM,
#3
RE: Install fails on Ubuntu
Good suggestion.

I'll also try a fresh install on another Ubuntu box, and I'll also try to install via git / etc
Reply
13-09-2016, 03:22 AM, (This post was last modified: 13-09-2016, 03:56 AM by mikronauts.)
#4
RE: Install fails on Ubuntu
Finally found some time to try to get a newer IDE installed again.

I chose SDCC as I am working with my RoboPIC 18F4550 board, and the test v12 IDE.

The installer completed installing, and the IDE came up!

Next, I tried to compile, and got the following error:

Code:
######################################################################
/dvpt/pinguino/git-copy/pinguino-compilers/sources/sdcc/src/pic16/main.c:701 setting interrupt vector addresses 0xc00
Processor: 18f4550
sdcc: Calling preprocessor...
sdcc: sdcpp -nostdinc -Wall -DPINGUINO4550 -Dboot4 -DBOARD=\"PINGUINO4550\" -DPROC=\"18f4550\" -DBOOT_VER=4 -I/opt/pinguino/v12/p8/include/pinguino/core -I/opt/pinguino/v12/p8/include/pinguino/libraries -I/home/bhenning/pinguino -D__18f4550 -D__SDCC_PIC18F4550 -D__STACK_MODEL_SMALL -obj-ext=.o -D__SDCC_USE_NON_FREE -D__SDCC_ALL_CALLEE_SAVES -D__SDCC=3_5_5 -D__SDCC_VERSION_MAJOR=3 -D__SDCC_VERSION_MINOR=5 -D__SDCC_VERSION_PATCH=5 -DSDCC=355 -D__SDCC_REVISION=9410 -D__SDCC_pic16 -D__STDC_NO_COMPLEX__ -D__STDC_NO_THREADS__ -D__STDC_NO_ATOMICS__ -D__STDC_NO_VLA__ -isystem /opt/pinguino/p8/bin/../share/sdcc/include/pic16 -isystem /dvpt/pinguino/git-copy/pinguino-compilers/linux64/p8/share/sdcc/include/pic16 -isystem /opt/pinguino/p8/bin/../share/sdcc/include -isystem /dvpt/pinguino/git-copy/pinguino-compilers/linux64/p8/share/sdcc/include -isystem /opt/pinguino/p8/bin/../share/sdcc/non-free/include/pic16 -isystem /dvpt/pinguino/git-copy/pinguino-compilers/linux64/p8/share/sdcc/non-free/include/pic16 -isystem /opt/pinguino/p8/bin/../share/sdcc/non-free/include -isystem /dvpt/pinguino/git-copy/pinguino-compilers/linux64/p8/share/sdcc/non-free/include  /home/bhenning/Pinguino/v12/source/main.c
sdcc: Generating code...
/opt/pinguino/p8/bin/../share/sdcc/non-free/include/pic16/pic18f4550.h:927: syntax error: token -> '13' ; column 15
sdcpp: fatal error: when writing output to : Broken pipe

It was complaining about a typedef union struct, specifically

Code:
typedef union
 {
 struct
   {
   unsigned RA0                : 1;

The column it stated was the problem corresponds to the space before RA0

Strange, eh?

Update:

Mea culpa.

I had conflicting defines.

Trying to fix...

Fixed.
Reply
18-09-2016, 08:38 AM,
#5
RE: Install fails on Ubuntu
What is the fix?
Reply
19-09-2016, 06:09 PM,
#6
RE: Install fails on Ubuntu
Changed the conflicting #defines

Basically I wrote some code under an earlier version of the IDE, and had to define the pin names (RA0... etc) as they were not pre-defined.

When I re-compiled the code under v12, which had the pin names defined, I had tons of errors.

Easy fix - changed my (no longer needed) defines.
Reply
19-09-2016, 09:49 PM,
#7
RE: Install fails on Ubuntu
Something like:
#ifndef RA0
#define RA0 smth
#endif //
?
Reply
22-09-2016, 02:30 AM,
#8
RE: Install fails on Ubuntu
yes, almost exactly that Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)