cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
olevr
Visitor
Visitor
1,571 Views
Registered: ‎11-08-2018

Petalinx Tools 2019.2 won't install on Ubuntu 18.04.3 LTS

Jump to solution

I want to install the Petalinux Tools 2019.2 on Ubuntu 18.04.3LTS.  Following the instructions in UG1144 I have installed the prerequisites in Table 2 and I have changed my default shell command to 'dash' with 'sudo dpkg-reconfigure dash'.  After downloading the installer I tried running it with

./petalinux-v2019.2-final-installer.run

and got

bash: ./petalinux-v2019.2-final-installer.run: Permission denied

Then I tried running with the shell command:

sh ./petalinux-v2019.2-final-installer.run

and got


./petalinux-v2019.2-final-installer.run: 8: ./petalinux-v2019.2-final-installer.run: function: not found
PetaLinux installer.

Usage:
petalinux-v2019.2-final-installer.run [--log <LOGFILE>] [INSTALL_DIR]

Options:
--log <LOGFILE> specify where the logfile should be created.
it will be petalinux_installation_log
in your working directory by default.
[INSTALL_DIR] specify the directory where you want to
install the tool kit. If not specified,
it will install to your working directory.


./petalinux-v2019.2-final-installer.run: 23: ./petalinux-v2019.2-final-installer.run: Syntax error: "}" unexpected

 

What is the problem?

0 Kudos
1 Solution

Accepted Solutions
bartokon
Explorer
Explorer
1,537 Views
Registered: ‎09-17-2018

They do install... I have petalinux on my ubuntu 18.4 lts. 

Did you install all required packages listed in petalinux 2019.2 install guide?

 

Did you tried "sudo ./peta.run"? And "sudo chmod 777 peta.run"?

Maybe you are installing petalinux in some kind of root only folder? Try make folder like /home/user/Petalinux/ and install it there.

Also ubuntu 18.4 lts doesn't support some 32bits libraries so first you need to add i386 architecture to your system and install 32bit packages/libraries. 

It all can be done via "apt get" after you add i386 architecture. 

Good luck making it work.

 

View solution in original post

3 Replies
bartokon
Explorer
Explorer
1,538 Views
Registered: ‎09-17-2018

They do install... I have petalinux on my ubuntu 18.4 lts. 

Did you install all required packages listed in petalinux 2019.2 install guide?

 

Did you tried "sudo ./peta.run"? And "sudo chmod 777 peta.run"?

Maybe you are installing petalinux in some kind of root only folder? Try make folder like /home/user/Petalinux/ and install it there.

Also ubuntu 18.4 lts doesn't support some 32bits libraries so first you need to add i386 architecture to your system and install 32bit packages/libraries. 

It all can be done via "apt get" after you add i386 architecture. 

Good luck making it work.

 

View solution in original post

hamza.bendaoudi
Contributor
Contributor
1,498 Views
Registered: ‎06-16-2017

Hi @olevr ,

It's mentionned in UG1144, page 9, that the supported OS for Petalinux 2019.2 is limited to Ubuntu 18.04.02.

Ubuntu Linux Workstation/Server 16.04.5, 16.04.6, 18.04.1,18.04.02 (64-bit)

Maybe you need to downgrade your Ubuntu version from 18.04.03 to 18.04.02.

Good Luck,

Hamza.

---

0 Kudos
olevr
Visitor
Visitor
1,477 Views
Registered: ‎11-08-2018

Hi bartokon,

Thanks for your reply.  I ran chmod 777 on the .run file and everything seems to have installed.  The reason I didn't run chmod 777 before was because of this note in UG1144, page 11 : Note: Do not change the installer permissions to CHMOD 775 as it might cause BitBake errors.

Perhaps that note should be removed.

0 Kudos