cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
3,954 Views
Registered: ‎02-13-2016

Failed to install petalinux 2018.3

Jump to solution

Hello,

I have downloaded petalinux 2018.3 on my Ubuntu 16.04. The requirements are satisfied.

I run the installer using this command:

~/petalinux$ ./../Downloads/petalinux-v2018.3-final-installer.run

to install it in the current directory.

Also, the current directory has permission 755 and the installation file 777 permission.

When I run the installer, I get this error:

INFO: Checking installation environment requirements...
awk: read error (Bad address)

Please refer to the PetaLinux Tools Installation Guide.

Check the troubleshooting guide at the end of that manual, and if you are
unable to resolve the issue please contact customer support with file:
   /home/user/petalinux/petalinux_installation_log

awk: read error (Bad address)
./../Downloads/petalinux-v2018.3-final-installer.run: line 139: /tmp/tmp.xOOXntq0Gg/: Is a directory
ERROR: Failed to extract Petalinux installer...

I tried this on my pc and also a virtual machine and the same error always happen. How can I solve this problem?

1 Solution

Accepted Solutions
Highlighted
Explorer
Explorer
3,920 Views
Registered: ‎02-13-2016

There were some required packages not installed. For anyone facing such error, please make sure you install the required packages found in the PetaLinux Installation Guide.

View solution in original post

0 Kudos
7 Replies
Highlighted
Explorer
Explorer
3,921 Views
Registered: ‎02-13-2016

There were some required packages not installed. For anyone facing such error, please make sure you install the required packages found in the PetaLinux Installation Guide.

View solution in original post

0 Kudos
Highlighted
Visitor
Visitor
3,675 Views
Registered: ‎12-14-2018

I followed what UG1144 (v2018.3) says on page 12 "Quick Installation of Packages",  and what is missing is gawk package.

In my case, ubuntu, this is what it should be:

sudo apt-get install -y gcc git make net-tools libncurses5-dev tftpd zlib1g-dev libssl-dev flex bison libselinux1 gnupg wget diffstat chrpath socat xterm autoconf libtool tar unzip texinfo zlib1g-dev gcc-multilib build-essential libsdl1.2-dev libglib2.0-dev zlib1g:i386 screen pax gzip gawk

Highlighted
Observer
Observer
3,640 Views
Registered: ‎10-11-2018
Yes, this is the case
0 Kudos
Highlighted
Observer
Observer
1,560 Views
Registered: ‎03-07-2008
Some guides show installing the petalinux .run file before all the dependencies. Installing the dependencies first worked for me. I assume the gawk package in particular since that was what was called out in the error message using the word "awk". This was using ubuntu 16.04.6 for me on 2019.2 petalinux.
0 Kudos
Highlighted
Observer
Observer
1,301 Views
Registered: ‎07-01-2019

Note this very same error will occur if the downloaded ".run" file is truncated for whatever reason. The script is searching for text in the installer with "gawk/awk" and if the command failed (solution here) or the text is not found (truncated file), then the scripting fails: a three-parameter command is handed only two parameters, and the name of the /tmp file is missing.

0 Kudos
Highlighted
Advisor
Advisor
713 Views
Registered: ‎10-10-2014

@ngiai @asobeih if I use the apt-get install, I get messages that some of the packets in the list from UG1144 need other packages ... what is the proper way to solve this? first install these too with apt-get? or use aptitude? 

** kudo if the answer was helpful. Accept as solution if your question is answered **
0 Kudos
Highlighted
Explorer
Explorer
663 Views
Registered: ‎02-13-2016

Hi @ronnywebers

You are right. You need to install the fulfill the package requirements before installing it. So, take your time installing what you need then proceed with the packages demonstrated in the user guide.

Good luck!