Installation of netbeans 8.1 from the .sh file in ubuntu 14.04

I have the installation file netbeans-8.1-linux.sh in the Others folder of Downloads.

Now when I am using the command from the Netbeans official сайт to make the installer file executable i.e.

chmod +x <netbeans-8.1-linux.sh>

It is showing the following ошибка

bash: syntax error near unexpected token `newline'

So what do I have to do?? Do I have to использовал the sudo command means like this

sudo./Downloads/Others/chmod +x <netbeans-8.1-linux.sh>

but it's showing the same ошибка. So if anyone could help

3
задан 8 January 2016 в 19:59

1 ответ

Сначала доберитесь, установщик

wget download.netbeans.org/netbeans/8.1/final/bundles/netbeans-8.1-linux.sh

Теперь дают ему исполняемые полномочия

chmod +x netbeans-8.1-linux.sh

Теперь для выполнения выполненного из его каталога

sudo sh netbeans-8.1-linux.sh

, Это запустит установщик

Согласно просьбе в комментариях, вот один лайнер

wget download.netbeans.org/netbeans/8.1/final/bundles/netbeans-8.1-linux.sh && chmod +x netbeans-8.1-linux.sh && sudo sh netbeans-8.1-linux.sh

, Кроме того, существует старая версия в repository’s, можно установить с одной командой

sudo apt-get install netbeans
4
ответ дан 1 December 2019 в 15:55

Другие вопросы по тегам:

Похожие вопросы: