Lazarus ubuntu ошибка

Ставил я в прошлом году Лазарус, надо было кое-какой код для Делфи посмотреть. Остались у меня в закромах заметки как его устанавливать, могу поделиться.

Прежде всего: не ставьте Лазарус через «Центр приложений Ubuntu»!! С вероятностью в 99% он поставится с ошибками.

————————————————————

Итак:

1. Идём на сайт с дистрибутивами Lazarus. Сюда.
Выбираем в списке:
Lazarus Linux amd64 DEB
или, если нужна не 64-разрядная версия, а 32-х, то выбираем
Lazarus Linux i386 DEB

2. Выбрали нужный дистрибутив. На экране список файлов. Что скачивать? Всё! Попросту говоря.
Если подробнее.
Создаём папку с соответственным именем (например Lazarus).
Скачиваем туда все 4 файла, которые видим на соответствующей страничке сайта. Можно и 3, без readme.txt, если угодно. Т.е. скачиваем туда ВСЕ файлы с расширением .deb
Например, для 64-разрядной версии:

lazarus_1.2.4-0_amd64.deb    
fpc-src_2.6.4-140420_amd64.deb    
fpc_2.6.4-140420_amd64.deb    
README.txt

3. Если на компьютере был уже установлен Lazarus – удаляем:
(Тут ниже форум умничает с автозаменой небезопасного кода. Заменяет rm -Rf на эрэм эрэф.)

sudo apt-get purge fpc lazarus
sudo эрэм эрэф /usr/lib/fpc
sudo эрэм эрэф /usr/lib/lazarus
sudo эрэм эрэф /usr/share/fpcsrc
sudo rm -f ~/.fpc
sudo rm -Rf ~/.lazarus

Скорее всего у вас не установлен пакет libgtk2.0-dev. А без него Лазарус не установится.
Если не установлен пакет libgtk2.0-dev , то устанавливаем:

sudo apt-get install libgtk2.0-dev(а если уже установлен, то команда, находящаяся выше, не помешает).

4. В Терминале (или в Midnight Commander’e, или как-то ещё) переходим в папку с дистрибутивом. Например так:

cd 'Путь к этому каталогу'И запускаем установку программы:

sudo dpkg -i *.deb
——————————————————————————————-

P.S. Для проверки установил на Ubuntu 14.04 последнюю версию Лазаруса. До этого успешно ставил на Ubuntu 12.04 версию Lazarus 1.0.8. Проверил — работает! «Hallo, world!» написал, во как!  :) Поомнят руки!

Вот такой я молодец!  ;D Написал большой пост. Говорите мне спасибо!

блин…
как-то раз уже разбирался с этой темой — разобрался вроде, всё работало (http://freepascal.ru/forum/viewtopic.php?f=37&t=5390)… сейчас опять косяки…
ситуация такая: есть исходники fpc 2.4.0, есть исходники Лазаруса 0.9.29 revition 27286 — последняя на текущий момент… но думается что лучше брать отсюда… прям уже не знаю что придуамть. Десять раз уже выкачал все сорцы… хз где чё с чем не срослось… не получается поднять…
А хочется вот что:
1. последнюю рабочую(!!!) версию fpc
2. последнюю рабочую(!!!) версию лазаруса
3. всё это чтоб обновлялось через svn
4. компилировалось и работало в домашней папке
5. сохранялись исходники, в которых были внесены изменения (например я добавил в стандартные компоненты свойств — чтобы они оставались при обновлении)
6. желательно без инсталляции компилятора из репов

система Ubuntu 10.04 … если получится то что надо — напишу мануал! ))

Добавлено спустя 5 часов 44 минуты 30 секунд:
Установка fpc из исходников на Убунту 10.04

1. установить fpc из репов используя Центр приложений Убунту

2. получить сорцы по svn
svn co

http://svn.freepascal.org/svn/fpc/trunk

home/user_name/ide/fpc_source

3. скомпилировать
sudo make install PREFIX=~/ide/fpc

4. установить права доступа
sudo chmod -R 777 /home/user_name/ide/fpc

5. удалить старый fpc чтобы не мешался, удалим через всё тот же Центр приложений

6. добавить путь к компилятору в переменную PATH
a. gedit /home/user_name/.profile
b. скорректируем переменную PATH чтобы она выглядела следующим образом:
PATH=»$HOME/ide:$HOME/ide/fpc/lib/fpc/2.5.1:$HOME/ide/fpc/bin:$PATH»
c. сохраним файл и переинициализируем переменную (logout-login)

7. создадим новый файл fpc.cfg в папке /home/user_name с помощью утилиты fpcmkcfg,
которая находится по адресу /home/user_name/ide/fpc/bin
fpcmkcfg -o /home/user_name/fpc.cfg

8. откроем созданный fpc.cfg и исправим все пути на актуальные
gedit /home/user_name/fpc.cfg

Установка Lazarus из исходников на Убунту 10.04

1. получим последнюю ревизию Лазаруса по svn
svn co

http://svn.freepascal.org/svn/lazarus/trunk

/home/user_name/ide/lazarus

2. для связки с make кинем ссылку на ppc386 в папку /usr/bin
используя ln или через sudo nautilus

3. соберём Лазарус
cd /home/user_name/ide/lazarus
sudo make clean all

… и вот сдесь сборка не получается команда sudo make clean all выводит следующее:

Код: Выделить всё
leo@leo-laptop:~/ide/lazarus$ sudo make clean all
make -C ide cleanide
make[1]: Вход в каталог `/home/leo/ide/lazarus/ide'
/bin/rm -f
/bin/rm -f
/bin/rm -f
/bin/rm -f
/bin/rm -f
/bin/rm -f
/bin/rm -f
/bin/rm -f
/bin/rm -f
/bin/rm -f
/bin/rm -f
/bin/rm -f
/bin/rm -f
/bin/rm -f
/bin/rm -f
/bin/rm -f
/bin/rm -f
/bin/rm -f
make[1]: Выход из каталога `/home/leo/ide/lazarus/ide'
make -C lcl clean
make[1]: Вход в каталог `/home/leo/ide/lazarus/lcl'
/bin/rm -f units/i386-linux/alllclunits.ppu units/i386-linux/actnlist.ppu units/i386-linux/arrow.ppu units/i386-linux/avglvltree.ppu units/i386-linux/buttons.ppu units/i386-linux/calendar.ppu units/i386-linux/chart.ppu units/i386-linux/checklst.ppu units/i386-linux/clipbrd.ppu units/i386-linux/clistbox.ppu units/i386-linux/comctrls.ppu units/i386-linux/controls.ppu units/i386-linux/dbactns.ppu units/i386-linux/dbctrls.ppu units/i386-linux/dbgrids.ppu units/i386-linux/dialogs.ppu units/i386-linux/dynamicarray.ppu units/i386-linux/dynhasharray.ppu units/i386-linux/editbtn.ppu units/i386-linux/extctrls.ppu units/i386-linux/extdlgs.ppu units/i386-linux/extendedstrings.ppu units/i386-linux/extgraphics.ppu units/i386-linux/filectrl.ppu units/i386-linux/forms.ppu units/i386-linux/fpcadds.ppu units/i386-linux/graphics.ppu units/i386-linux/graphmath.ppu units/i386-linux/graphtype.ppu units/i386-linux/grids.ppu units/i386-linux/imglist.ppu units/i386-linux/inipropstorage.ppu units/i386-linux/interfacebase.ppu units/i386-linux/lazlinkedlist.ppu units/i386-linux/lclintf.ppu units/i386-linux/lclmemmanager.ppu units/i386-linux/lclproc.ppu units/i386-linux/lclrescache.ppu units/i386-linux/lclstrconsts.ppu units/i386-linux/lcltype.ppu units/i386-linux/lclunicodedata.ppu units/i386-linux/lconvencoding.ppu units/i386-linux/lmessages.ppu units/i386-linux/lresources.ppu units/i386-linux/maskedit.ppu units/i386-linux/menus.ppu units/i386-linux/pairsplitter.ppu units/i386-linux/popupnotifier.ppu units/i386-linux/postscriptprinter.ppu units/i386-linux/printers.ppu units/i386-linux/propertystorage.ppu units/i386-linux/spin.ppu units/i386-linux/stdactns.ppu units/i386-linux/stdctrls.ppu units/i386-linux/stringhashlist.ppu units/i386-linux/textstrings.ppu units/i386-linux/toolwin.ppu units/i386-linux/utrace.ppu units/i386-linux/xmlpropstorage.ppu
/bin/rm -f units/i386-linux/lclstrconsts.rst
/bin/rm -f           
/bin/rm -f fpcmade.i386-linux Package.fpc ppas.sh script.res link.res 
/bin/rm -f *.s *_ppas.sh
make -C interfaces clean
make[2]: Вход в каталог `/home/leo/ide/lazarus/lcl/interfaces'
make -C gtk2 clean
make[3]: Вход в каталог `/home/leo/ide/lazarus/lcl/interfaces/gtk2'
/bin/rm -f ../../units/i386-linux/gtk2/interfaces.ppu ../../units/i386-linux/gtk2/gtk2int.ppu
/bin/rm -f     
/bin/rm -f fpcmade.i386-linux Package.fpc ppas.sh script.res link.res 
/bin/rm -f *.s *_ppas.sh
make[3]: Выход из каталога `/home/leo/ide/lazarus/lcl/interfaces/gtk2'
make[2]: Выход из каталога `/home/leo/ide/lazarus/lcl/interfaces'
make[1]: Выход из каталога `/home/leo/ide/lazarus/lcl'
make -C components clean
make[1]: Вход в каталог `/home/leo/ide/lazarus/components'
/bin/rm -f         
/bin/rm -f fpcmade.i386-linux Package.fpc ppas.sh script.res link.res 
/bin/rm -f *.s *_ppas.sh
make -C synedit clean
make[2]: Вход в каталог `/home/leo/ide/lazarus/components/synedit'
/bin/rm -f units/i386-linux/allsyneditunits.ppu units/i386-linux/synbeautifier.ppu units/i386-linux/syncompletion.ppu units/i386-linux/syndesignstringconstants.ppu units/i386-linux/synedit.ppu units/i386-linux/syneditautocomplete.ppu units/i386-linux/syneditexport.ppu units/i386-linux/syneditfoldedview.ppu units/i386-linux/synedithighlighter.ppu units/i386-linux/synedithighlighterfoldbase.ppu units/i386-linux/synedithighlighterxmlbase.ppu units/i386-linux/syneditkeycmds.ppu units/i386-linux/syneditlazdsgn.ppu units/i386-linux/syneditlines.ppu units/i386-linux/syneditmarks.ppu units/i386-linux/syneditmarkup.ppu units/i386-linux/syneditmarkupbracket.ppu units/i386-linux/syneditmarkupctrlmouselink.ppu units/i386-linux/syneditmarkuphighall.ppu units/i386-linux/syneditmarkupselection.ppu units/i386-linux/syneditmarkupspecialline.ppu units/i386-linux/syneditmarkupwordgroup.ppu units/i386-linux/syneditmiscclasses.ppu units/i386-linux/syneditmiscprocs.ppu units/i386-linux/syneditmousecmds.ppu units/i386-linux/syneditplugins.ppu units/i386-linux/syneditpointclasses.ppu units/i386-linux/syneditregexsearch.ppu units/i386-linux/syneditsearch.ppu units/i386-linux/syneditstrconst.ppu units/i386-linux/synedittextbase.ppu units/i386-linux/synedittextbuffer.ppu units/i386-linux/synedittextdoublewidthchars.ppu units/i386-linux/synedittexttabexpander.ppu units/i386-linux/synedittexttrimmer.ppu units/i386-linux/synedittypes.ppu units/i386-linux/synexporthtml.ppu units/i386-linux/syngutter.ppu units/i386-linux/syngutterbase.ppu units/i386-linux/syngutterchanges.ppu units/i386-linux/synguttercodefolding.ppu units/i386-linux/syngutterlinenumber.ppu units/i386-linux/synguttermarks.ppu units/i386-linux/synhighlighterany.ppu units/i386-linux/synhighlightercpp.ppu units/i386-linux/synhighlightercss.ppu units/i386-linux/synhighlighterhashentries.ppu units/i386-linux/synhighlighterhtml.ppu units/i386-linux/synhighlighterjava.ppu units/i386-linux/synhighlighterjscript.ppu units/i386-linux/synhighlighterlfm.ppu units/i386-linux/synhighlightermulti.ppu units/i386-linux/synhighlighterpas.ppu units/i386-linux/synhighlighterperl.ppu units/i386-linux/synhighlighterphp.ppu units/i386-linux/synhighlighterposition.ppu units/i386-linux/synhighlighterpython.ppu units/i386-linux/synhighlightersql.ppu units/i386-linux/synhighlightertex.ppu units/i386-linux/synhighlighterunixshellscript.ppu units/i386-linux/synhighlightervb.ppu units/i386-linux/synhighlighterxml.ppu units/i386-linux/synhighlighterdiff.ppu units/i386-linux/synmacrorecorder.ppu units/i386-linux/synmemo.ppu units/i386-linux/synpluginsyncroedit.ppu units/i386-linux/synpluginsyncronizededitbase.ppu units/i386-linux/synplugintemplateedit.ppu units/i386-linux/synpropertyeditobjectlist.ppu units/i386-linux/synregexpr.ppu units/i386-linux/syntextdrawer.ppu
/bin/rm -f         
/bin/rm -f fpcmade.i386-linux Package.fpc ppas.sh script.res link.res 
/bin/rm -f *.s *_ppas.sh
make[2]: Выход из каталога `/home/leo/ide/lazarus/components/synedit'
make -C codetools clean
make[2]: Вход в каталог `/home/leo/ide/lazarus/components/codetools'
/bin/rm -f units/i386-linux/codetools.pas.ppu
/bin/rm -f         
/bin/rm -f fpcmade.i386-linux Package.fpc ppas.sh script.res link.res 
/bin/rm -f *.s *_ppas.sh
make[2]: Выход из каталога `/home/leo/ide/lazarus/components/codetools'
make -C lazcontrols clean
make[2]: Вход в каталог `/home/leo/ide/lazarus/components/lazcontrols'
/bin/rm -f lib/i386-linux/lazcontrols.pas.ppu
/bin/rm -f         
/bin/rm -f fpcmade.i386-linux Package.fpc ppas.sh script.res link.res 
/bin/rm -f *.s *_ppas.sh
make[2]: Выход из каталога `/home/leo/ide/lazarus/components/lazcontrols'
make[1]: Выход из каталога `/home/leo/ide/lazarus/components'
make -C packager clean
make[1]: Вход в каталог `/home/leo/ide/lazarus/packager'
/bin/rm -f       
/bin/rm -f fpcmade.i386-linux Package.fpc ppas.sh script.res link.res 
/bin/rm -f *.s *_ppas.sh
make[1]: Выход из каталога `/home/leo/ide/lazarus/packager'
make -C ideintf clean
make[1]: Вход в каталог `/home/leo/ide/lazarus/ideintf'
/bin/rm -f units/i386-linux/allideintf.ppu units/i386-linux/a.ppu units/i386-linux/ActionsEditor.ppu units/i386-linux/ColumnDlg.ppu units/i386-linux/ComponentEditors.ppu units/i386-linux/ComponentReg.ppu units/i386-linux/ComponentTreeView.ppu units/i386-linux/ConfigStorage.ppu units/i386-linux/DBPropEdits.ppu units/i386-linux/FieldsEditor.ppu units/i386-linux/FormEditingIntf.ppu units/i386-linux/FrmSelectProps.ppu units/i386-linux/GraphPropEdits.ppu units/i386-linux/HelpFPDoc.ppu units/i386-linux/HelpHTML.ppu units/i386-linux/HelpIntf.ppu units/i386-linux/IDECommands.ppu units/i386-linux/IDEWindowIntf.ppu units/i386-linux/ImageListEditor.ppu units/i386-linux/LazIDEIntf.ppu units/i386-linux/ListViewPropEdit.ppu units/i386-linux/MacroIntf.ppu units/i386-linux/MaskPropEdit.ppu units/i386-linux/MenuIntf.ppu units/i386-linux/NewItemIntf.ppu units/i386-linux/ObjectInspector.ppu units/i386-linux/ObjInspStrConsts.ppu units/i386-linux/PackageIntf.ppu units/i386-linux/ProjectIntf.ppu units/i386-linux/PropEdits.ppu units/i386-linux/SrcEditorIntf.ppu units/i386-linux/TextTools.ppu
/bin/rm -f     
/bin/rm -f fpcmade.i386-linux Package.fpc ppas.sh script.res link.res 
/bin/rm -f *.s *_ppas.sh
make[1]: Выход из каталога `/home/leo/ide/lazarus/ideintf'
make -C lcl all
make[1]: Вход в каталог `/home/leo/ide/lazarus/lcl'
/bin/rm -f units/i386-linux/alllclunits.ppu
/usr/bin/ppc386 -gl  -Fu. -Funonwin32 -Fuforms -Fuwidgetset -Fiinclude -FE. -FUunits/i386-linux -di386 alllclunits.pp
Free Pascal Compiler version 2.5.1 [2010/09/09] for i386
Copyright (c) 1993-2010 by Florian Klaempfl
Target OS: Linux for i386
Compiling alllclunits.pp
Fatal: Can't find unit system used by AllLCLUnits
Fatal: Compilation aborted
make[1]: *** [alllclunits.ppu] Ошибка 1
make[1]: Выход из каталога `/home/leo/ide/lazarus/lcl'
make: *** [lcl] Ошибка 2

В чём может быть загвоздка?

Topic: (solved)Error installing Lazarus in ubuntu  (Read 17905 times)

Hi,
I am using Ubuntu 16.04.2 64 bits,  just installed and updated, in a 64bits laptop .

Trying to install Lazarus-project_1.6.4-0_amd64.deb using «Ubuntu Software»   received message : «RAD tool for freepascal Lazarus is a free and opensource IDE and RAD tool for Free Pascal using the Lazarus component library LCL. The LCL is included in this package too. See http://www.lazarus.freepascal.org».

Trying to install with GDebi  the same message plus  » the dependency is not met : fpg(=3.02 | fp-compiler(=3.02)» . ‘met’ is for shure  a bad translation from portuguese ‘dependência’ (dependency?).

There is also an info I suppose is about  RAD tool :
version 1.6.4
size 587,3 MB

Another problem is that I can’t execute executables compiled  using an older Lazarus version in ubuntu 12.04-32bits (will not be able to find the version soon). Is that normal?

Thanks for any help

Geraldo

« Last Edit: March 22, 2017, 04:31:17 pm by geraldocg »


Logged


Hello geraldocg,
Welcome to this forum.

You should not use the Lazarus that come from your Ubuntu repository. For Ubuntu users, I recommend Synaptic Package Manager (instead of the default Ubuntu Software Manager).

First download the 3 debs file from Lazarus official website (via SourceForge):
https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%201.6.4/

Because you have already tried to install Lazarus, you may need to clean up the previous installation:

01. Uninstall lazarus, fpc, fpc-src (use Ctrl+F shortcut on your Synaptic to search)
02. Delete ~/.lazarus
03. Delete /etc/fp* (fpc.bak, fpc.cfg, fppkg.bak, fppkg.cfg)
04. Delete /usr/share/fpsrc
05. Delete /usr/lib/fpc
06. Delete /usr/bin/ppc* (ppcarm, ppcross386, ppcrossarm, ppcx64)

After the cleaning up prosedure, then now Install the Lazarus:
07. Install fpc_3.0.2-170225_amd64.deb
08. Install fpc-src_3.0.2-170225_amd64.deb
09. Install lazarus-project_1.6.4-0_amd64.deb

Your Lazarus now should be able to start and run properly. But you should to lock your Lazarus/FPC to prevent Ubuntu to mess up your installation with its upgrades. To do it:

Start your Synaptic Package Manager > Select fpc, fpc-src, lazarus-project > menu item: Package > Lock Version.

Have fun!

« Last Edit: March 21, 2017, 03:10:09 am by Handoko »


Logged


Yet another dependency problem with Ubuntu…
See also :
 http://forum.lazarus-ide.org/index.php/topic,36258.msg241382.html#msg241382

The recommendation for new Ubuntu users must be to switch their distro instead of explaining complex ways to fix the problems and then continue with it.
For some reason people keep up the hype and illusion that Ubuntu is a good desktop distro.

We recommend the latest Lazarus release!
New users should obviously choose a Linux distro that allows them to install the latest release without a hassle.
There are plenty of choices.

« Last Edit: March 21, 2017, 10:49:04 am by JuhaManninen »


Logged

Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.


Hello.

I have installed new version of Lazarus on Linux Mint mate 64 following Handoko advices (many thanks for this).

OK, Lazarus installed and run.

But when trying to install a component (OPM), while recompiling Lazarus, there is that error:

Creation de l’EDI: Code de sortie 512 — Erreurs : 1
lazarus.pp(154,1) Error: Error while linking

Note that Lazarus was started with root permission:

  1. # sudo startlazarus

Thanks.

Fre;D


Logged


Re-hello.

It seems that the problem comes from new fpc release.
( from https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%201.6.4/  )

Example:

  1. program test;

  2. begin

  3. end.

—->

  1. # fpc test.pas

—->

Free Pascal Compiler version 3.0.2 [2017/02/25] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling test.pas
Linking test
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
/usr/bin/ld: /usr/lib/fpc/3.0.2/units/x86_64-linux/rtl/prt0.o: unrecognized relocation (0x2a) in section `.text’
/usr/bin/ld: final link failed: Bad value
testnew.pas(3,1) Error: Error while linking
testnew.pas(3,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode

Fre;D

« Last Edit: March 21, 2017, 06:22:08 pm by Fred vS »


Logged


Just repeat. These linker errors are often due to lack of memory. (E.g: Rpi) Repeating the build cycle will skip everything done and has more space for linking.


Logged

I actually get compliments for being rude… (well, Dutch, but that is the same)



Logged


Re-hello.

After re-installing fpc from http://www.freepascal.org/download.var —> OK, it compiles and link perfectly.

fpc test.pas
Free Pascal Compiler version 3.0.2 [2017/02/06] for i386
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Linux for i386
Compiling test.pas
Linking test
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
3 lines compiled, 1.3 sec

While loading Lazarus, in welcome form —>

Erreur :»fpc.cfg» manque.

Huh, /etc/fpc.cfg is there…
After ignoring the message, Lazarus load and re-compiling Lazarus was OK (including OPM new package).

Fre;D


Logged


Hi  Fred vS.

Can you tried to (re)install the older version to see if the problem is exist in the older versions? If it happens on FPC 3.0.2 only, then it may be a bug.

I remember when installing FPC, I got a warning message with red text. I said that the FPC 3.0.2 installation had conflict. I just ignored it and my Lazarus/FPC installation now seems to work correctly regardless the warning.


Logged


@Handoko.

Huh, all is re-working now. I t was lot of work to re-install all.
If I may there is something that I do not understand.
Why only give .deb file for installing «out of the box» Lazarus in Linux ?
For this I need to de-install all my fpc’s (32/64 bit) that were working perfectly.
This because Lazarus.deb needs fpc installed via .deb.

But you should to lock your Lazarus/FPC to prevent Ubuntu to mess up your installation with its upgrades. To do it:

Then .deb is totally not needed (even worse better to not use it).

Sincerely, IMO, why Lazarus team does not do like fpc do  —> a simple compressed file + a install.sh script that works, perfectly for all Linux distribution, without cry and without a single hair loosed.

Fre;D

« Last Edit: March 22, 2017, 01:16:33 pm by Fred vS »


Logged


Hi,
Thanks for your repply.
Followed Handoko instructions and Lazarus was installed without errors. Thanks !!!!!. Have not used it yet.
Regarding 16.04 not running executables compiled under 12.04 (32bits) I tried to run one of them in a terminal and got the error:

«./CAMCONT: error while loading shared libraries: libgdk_pixbuf-2.0.so.0: cannot open shared object file: No such file or directory»

Can this be corrected by installing (reinstalling) the lib cited?
If yes how?

Thanks for any help,
Geraldo


Logged


Then .deb is totally not needed (even worse better to not use it).

Yes, I don’t know why there are so many problems. It seems to work in some machines though.
Fortunately there are other ways to install.

Sincerely, IMO, why Lazarus team does not do like fpc do  —> a simple compressed file + a install.sh script that works, perfectly for all Linux distribution, without cry and without a single hair loosed.

Maybe because it is so very easy to get Lazarus from the SVN server. Just do:
 $ svn co http://svn.freepascal.org/svn/lazarus/branches/fixes_1_6 lazarus_1_6
and then «make».
As an extra bonus you get the latest backported bug fixes.
BTW, I have seen how people recommend the fpclazup tool for this simple task. I think it is misleading and even irresponsible towards new users. It is a complex tool, good for installing various versions of FPC and for cross-compilation, but for this easy task it is not needed.

The «svn co» command above is needed only once per a major release, currently for 1.6.x.
Then «svn up» will get the latest backported fixes.
Minimal hassle, minimal network traffic.

« Last Edit: March 22, 2017, 04:26:11 pm by JuhaManninen »


Logged

Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.


«./CAMCONT: error while loading shared libraries: libgdk_pixbuf-2.0.so.0: cannot open shared object file: No such file or directory»

Can this be corrected by installing (reinstalling) the lib cited?
If yes how?

My prediction is you will screw up the whole system.

Earlier I recommended other Linux distros for people who have such problems with Ubuntu. Maybe it was considered a joke but no, it was not a joke.
For example what is your motivation to use Ubuntu while it clearly does not work well as a desktop OS for your purposes?

« Last Edit: March 22, 2017, 04:31:43 pm by JuhaManninen »


Logged

Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.


Copied all old project files and folders from old 12.04 HD to new, opened Nautilus, double clicked the copied  CAMCONT.lpr, Lazarus opened the project, compiled, build. Executable now ‘executing’.
 Will do the same for other projects.
Thanks again,
Geraldo


Logged


maybe because it is so very easy to get Lazarus from the SVN server. Just do:

Yes, maybe, but (IMHO) a «out-of-the-box» compressed file (+ included install.sh script), like fpc does, has some advantages.
—> no need to install svn, you can share the zip file with everybody (without internet connection), you may look at the script and change it if you want.

For example what is your motivation to use Ubuntu while it clearly does not work well as a desktop OS for your purposes?

Because Ubuntu + Mint are the kings (I know, it is sad, see classement) —> http://distrowatch.com

Fre;D

« Last Edit: March 22, 2017, 06:13:46 pm by Fred vS »


Logged


84 / 2 / 1

Регистрация: 07.04.2018

Сообщений: 255

1

27.06.2020, 18:43. Показов 2862. Ответов 15


Студворк — интернет-сервис помощи студентам

Установил Lazarus 2.0.6 из центра программ Discover.
Нажимаю на иконку для запуска Lazarus и получаю такое сообщение (см. скрин).
В чем проблема и как это исправить?

Миниатюры

В Kubuntu 20.04 не запускается Lazarus
 



0



Супер-модератор

Эксперт Pascal/DelphiАвтор FAQ

32582 / 21053 / 8131

Регистрация: 22.10.2011

Сообщений: 36,326

Записей в блоге: 8

28.06.2020, 10:38

2

Поправить путь с того, что есть сейчас на /usr/share/lazarus/2.0.6/lazarus, где на самом деле оно находится (как-не спрашивай, у меня нет KDE)

А вообще неплохо было бы ставить Лазарус не из репозиториев, а скачивать deb-пакет с официального сайта. Он там новее (уже сейчас есть 2.0.8, в июле наконец-то готовится 2.0.10, откомпилированный с FPC 3.2). Как только выйдет — удали свою 2.0.6 и обнови на версию с сайта.



0



Kubuntovod

Эксперт NIX

2918 / 810 / 182

Регистрация: 14.01.2013

Сообщений: 3,742

28.06.2020, 12:03

3

Bash
1
sudo apt install lazarus-ide-qt5-2.0

Миниатюры

В Kubuntu 20.04 не запускается Lazarus
 



1



84 / 2 / 1

Регистрация: 07.04.2018

Сообщений: 255

28.06.2020, 18:03

 [ТС]

4

Kubuntovod, Спасибо! Теперь все работает!

Добавлено через 54 секунды

Цитата
Сообщение от volvo
Посмотреть сообщение

скачивать deb-пакет с официального сайта

У меня почему-то пакеты deb не хотят устанавливаться. Ошибка выдается.



0



Супер-модератор

Эксперт Pascal/DelphiАвтор FAQ

32582 / 21053 / 8131

Регистрация: 22.10.2011

Сообщений: 36,326

Записей в блоге: 8

28.06.2020, 18:27

5

Цитата
Сообщение от meteor12
Посмотреть сообщение

почему-то пакеты deb не хотят устанавливаться. Ошибка выдается.

Я не телепат. Будет описание ошибки, будет приведен порядок установки — будет разговор. Мне неинтересно сидеть на устаревших версиях, поэтому у меня все прекрасно устанавливается, никаких ошибок не происходит.



1



Эксперт NIX

2918 / 810 / 182

Регистрация: 14.01.2013

Сообщений: 3,742

28.06.2020, 18:38

6

Цитата
Сообщение от meteor12
Посмотреть сообщение

У меня почему-то пакеты deb не хотят устанавливаться. Ошибка выдается.

Потому, что оно под GTK заточено. Чтобы установить, надо ещё зависимости прокачать.



1



84 / 2 / 1

Регистрация: 07.04.2018

Сообщений: 255

03.07.2020, 17:03

 [ТС]

7

Цитата
Сообщение от Kubuntovod
Посмотреть сообщение

sudo apt install lazarus-ide-qt5-2.0

После такой установки Lazarus запускается, не компилирует программы. Он выдает одну и туже ошибку при попытке компилировать любую программу.

Миниатюры

В Kubuntu 20.04 не запускается Lazarus
 



0



84 / 2 / 1

Регистрация: 07.04.2018

Сообщений: 255

03.07.2020, 17:11

 [ТС]

8

Добавлено через 54 секунды
Kubuntovod, Кроме самого Lazarus там еще необходимо два других файла установить чтобы все работало.

Конечно можно попробовать скачать и установить версию 2.0.8. Но перед этим нужно грамотно удалить версию 2.0.6. Я пытался, но получал сообщение что нужно удалить пакеты предыдущей версии. Как это сделать опыта не имею.

Раньше в версии Kubuntu 19.10 Lazarus ранней версии устанавливался из Discover без проблем и работал отлично. Почему в версии Kubuntu 20.04 такие глюки на ровном месте непонятно.



0



Kubuntovod

Эксперт NIX

2918 / 810 / 182

Регистрация: 14.01.2013

Сообщений: 3,742

04.07.2020, 07:38

9

Лучший ответ Сообщение было отмечено meteor12 как решение

Решение

Цитата
Сообщение от meteor12
Посмотреть сообщение

Конечно можно попробовать скачать и установить версию 2.0.8. Но перед этим нужно грамотно удалить версию 2.0.6. Я пытался, но получал сообщение что нужно удалить пакеты предыдущей версии. Как это сделать опыта не имею.

Примерно также, как и установить. Как-нибудь так:

Bash
1
sudo apt remove lazarus-ide-qt5-2.0

Если сносить с настройками, то:

Bash
1
sudo apt purge lazarus-ide-qt5-2.0

Приблизительный алгоритм действий, для установки 2.0.8:

Bash
1
2
3
4
5
6
7
mkdir laza
cd laza
wget https://lazarus-rus.ru/wp-content/uploads/2020/04/lazarus-project_2.0.8-0_amd64.deb
wget https://lazarus-rus.ru/wp-content/uploads/2020/04/fpc-laz_3.0.4-1_amd64.deb
wget https://lazarus-rus.ru/wp-content/uploads/2020/04/fpc-src_3.0.4-2_amd64.deb
sudo dpkg -i *.deb
sudo apt-get install -f



1



Супер-модератор

Эксперт Pascal/DelphiАвтор FAQ

32582 / 21053 / 8131

Регистрация: 22.10.2011

Сообщений: 36,326

Записей в блоге: 8

04.07.2020, 12:09

10

Не надо торопиться. В течении двух недель будет 2.0.10 на FPC 3.2, лучше сразу его установить, а пока не вышел — пользоваться тем, что сейчас работает…



1



84 / 2 / 1

Регистрация: 07.04.2018

Сообщений: 255

04.07.2020, 17:55

 [ТС]

11

Kubuntovod, как старые fpc пакеты удалить?



0



Kubuntovod

Эксперт NIX

2918 / 810 / 182

Регистрация: 14.01.2013

Сообщений: 3,742

04.07.2020, 18:03

12

Вот так можно узнать, какие из них установлены:

Bash
1
dpkg -l | grep fpc

Можно и удалить также, через dpkg:

Bash
1
sudo dpkg -r fpc-чего-то-там fpc-чего-то-ещё



0



meteor12

84 / 2 / 1

Регистрация: 07.04.2018

Сообщений: 255

04.07.2020, 18:10

 [ТС]

13

Kubuntovod,

Bash
1
2
3
4
$ dpkg -l | grep fpc
ii  fpc                                           3.0.4+dfsg-23                               all          Free Pascal - SDK suite dependency package
ii  fpc-3.0.4                                     3.0.4+dfsg-23                               all          Free Pascal - SDK-3.0.4 suite
ii  fpc-source-3.0.4                              3.0.4+dfsg-23                               all          Free Pascal - SDK source code
Bash
1
2
3
4
5
6
7
8
$ sudo dpkg -r fpc-3.0.4
dpkg: проблемы с зависимостями не позволяют удалить пакет fpc-3.0.4:
 fpc зависит от fpc-3.0.4 (= 3.0.4+dfsg-23).
 
dpkg: ошибка при обработке пакета fpc-3.0.4 (--remove):
 проблемы с зависимостями — не удаляется
При обработке следующих пакетов произошли ошибки:
 fpc-3.0.4



0



Kubuntovod

Эксперт NIX

2918 / 810 / 182

Регистрация: 14.01.2013

Сообщений: 3,742

04.07.2020, 18:36

14

Bash
1
sudo dpkg -r fpc fpc-3.0.4 fpc-source-3.0.4

Добавлено через 1 минуту

Bash
1
sudo apt purge fpc

должен всю братию удалить, предварительно спросив.



0



84 / 2 / 1

Регистрация: 07.04.2018

Сообщений: 255

07.07.2020, 15:32

 [ТС]

15

Kubuntovod, Спасибо. Теперь удалось установить Lazarus 2.0.8. Теперь программы компилируются. Все работает исправно.



0



Эксперт NIX

2918 / 810 / 182

Регистрация: 14.01.2013

Сообщений: 3,742

07.07.2020, 16:15

16

meteor12, не расслабляйтесь. На подходе 2.0.10



1



IT_Exp

Эксперт

87844 / 49110 / 22898

Регистрация: 17.06.2006

Сообщений: 92,604

07.07.2020, 16:15

Помогаю со студенческими работами здесь

В Kubuntu не работает wi-fi
Установил Kubuntu Jaunty . Встроенное средство настройки сети не работает , не хочет настраивать…

Kubuntu vs Mint
Хочу спросить опытных линуксоидов,какой дистрибутив лучше выбрать?Я вообще в линуксе 0,почему я…

Kubuntu и msi
Всем привет. стоит кубунту, хочу установить chessbase, установочный айл имеет расширение msi….

Kubuntu и чистый си
Я новичок и прошу не ругаться.Вопрос:
1)Можно ли на чистом си сделать попиксельную графику одной…

Установка g++ в Kubuntu 9.04
Столкнулся с такой проблемой:
для установки пакета g++-4.2_4.2.4-1ubuntu3_i386 среди прочего нужен…

Kubuntu 16.04 зависает
На компьютере стоят 2 ОС, windows7 , kubuntu 16.04
Windows 7 работает отлично, но при работе в…

Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:

16

hottabxp

Скачал и установил на Ubuntu 20.04 Lazarus 2.0.12. При запуске через несколько секунд появляется следующее окошко:619a7243950e3280316415.png
Нажимаю «подождать». Через несколько секунд опять такое окно. Опять нажимаю «подождать». Потом запускается сам Lazarus. При запуске taskmanager аномалий не замечает. Что интересно, простой hello world ведет себя так само, только такое окно появляется 1 раз при запуске (даже при отключенной генерации отладочной информации). Зависимости все стоят.

Данную версию устанавливал на Windows XP и wine — Lazarus там запускается быстро и без проблем.
Также на Ubuntu пробовал ставить следующие версии: 2.0.10, 2.2RC1, 2.2RC2 — без изменений.

Ума не приложу — куда копать. Интересно, проблема только у меня, или на всех линуксах?


  • Вопрос задан

    более года назад

  • 150 просмотров

Покурил askubuntu и стало ясно, в Ubuntu что-то сломали (по крайней мере, в 19.10, 20.04 — некоторые приложения запускаются очень долго, примерно 20-30 секунд).

Есть 2 работающие решения(сам проверял).
1) Запуск приложения от root(не всегда удобно и безопасно);
2) Запускать из консоли: dbus-launch --exit-with-session *имя_приложения*, в моем случае — dbus-launch --exit-with-session lazarus-ide — Lazarus ide стартует мгновенно.

UPD: Решение номер 3 — установить appmenu-gtk2-module sudo apt install appmenu-gtk2-module и перезагрузится.

Пригласить эксперта

>Скачал и установил
как установил?
запустите из терминала, посмотрите вывод программы


  • Показать ещё
    Загружается…

04 июн. 2023, в 01:35

1500 руб./за проект

04 июн. 2023, в 01:25

40000 руб./за проект

03 июн. 2023, в 23:42

1500 руб./за проект

Минуточку внимания

Понравилась статья? Поделить с друзьями:
  • Laravel логирование ошибок
  • Laravel логи ошибок
  • Laravel 500 ошибка после переноса
  • Land rover discovery ограничение мощности ошибка
  • Land rover discovery 3 ошибка пневмы