Lazarus

Installation => Linux => Topic started by: Kralle on January 15, 2017, 08:21:18 pm

Title: [solved] Linux Mint 18.1: Install script doesn't work
Post by: Kralle on January 15, 2017, 08:21:18 pm
Hello,

i have just installed "Linux Mint 18.1 64-Bit" again.
In the past i use this Script for install FPC und Laz:

http://rompelsoft.de/index.php/download/download/19-englisch-sprachig/107-getlaz-sh

But now i become this errors:
http://www.lazarusforum.de/download/file.php?id=3659

At this german forum thead
http://www.lazarusforum.de/viewtopic.php?f=3&t=10409

a other user means that he has problems with "make".

Is this a "Linux Mint" problem or a Lazarus/FPC Problem?

Greetings from
Germany
heiko rompel
Title: Re: Linux Mint 18.1: Install script doesn't work
Post by: molly on January 15, 2017, 08:56:08 pm
"Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen."
Title: Re: Linux Mint 18.1: Install script doesn't work
Post by: Kralle on January 15, 2017, 09:52:22 pm
Sorry, but the files are to great for upload here.

I look for a way delete this problem.

heiko
Title: Re: Linux Mint 18.1: Install script doesn't work
Post by: molly on January 15, 2017, 09:57:15 pm
A zipped up output from make is exceeding upload limits here ?
Title: Re: Linux Mint 18.1: Install script doesn't work
Post by: Kralle on January 15, 2017, 10:08:12 pm
if have upload the message file here: http://www.heiko-rompel.de/download/meldungen.txt (http://www.heiko-rompel.de/download/meldungen.txt)
Title: Re: Linux Mint 18.1: Install script doesn't work
Post by: molly on January 15, 2017, 10:14:57 pm
Danke Kralle,

But, could you point (me/us) to the errors you are referring to ?

I see a lot of warnings, hints and tips but as far as i am able to tell everything compiled ok.
Title: Re: Linux Mint 18.1: Install script doesn't work
Post by: Kralle on January 15, 2017, 10:19:52 pm
Hello,

i don't know what of this many messages is the message that tell me why i can't install lazarus by this way.
with https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%201.6.2/ (https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%201.6.2/) i can install Laz1.6.2.

It's crazy. Last week the Script works and today it doesn't works. Both days i do the same. Install Mint new and run the script, both on the some pc.

greetings
Heiko
Title: Re: Linux Mint 18.1: Install script doesn't work
Post by: molly on January 15, 2017, 10:33:59 pm
I'm sorry but, i do not know of which script you speak about.

The relevant parts are here:
Quote
...
/home/laz-user/lazarus/ide/lazarus.pp(71,5) Hint: (5023) Unit "FPCUnitTestRunner" not used in Lazarus
(9022) Compiling resource ../units/x86_64-linux/gtk2/lazarus.or
(9015) Linking ../lazarus
/usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
(1008) 280220 lines compiled, 57.1 sec
(1021) 15 warning(s) issued
(1022) 2796 hint(s) issued
(1023) 1 note(s) issued
make[2]: Verzeichnis „/home/laz-user/lazarus/ide“ wird verlassen
make[1]: Verzeichnis „/home/laz-user/lazarus/ide“ wird verlassen
make -C ide starter
make[1]: Verzeichnis „/home/laz-user/lazarus/ide“ wird betreten
make --assume-new=startlazarus.lpr startlazarus OPT=' -Fu../packager/units/x86_64-linux -Fu../components/codetools/units/x86_64-linux -Fu../components/debuggerintf/lib/x86_64-linux -Fu../components/lazutils/lib/x86_64-linux -Fu../lcl/units/x86_64-linux -Fu../lcl/units/x86_64-linux/gtk2 -Fu../components/ideintf/units/x86_64-linux/gtk2 -Fu../components/synedit/units/x86_64-linux/gtk2 -Fu../components/lazcontrols/lib/x86_64-linux/gtk2 -Fu../components/lazdebuggergdbmi/lib/x86_64-linux -Fu../units/x86_64-linux/gtk2  '
make[2]: Verzeichnis „/home/laz-user/lazarus/ide“ wird betreten
/usr/bin/ppcx64 -gl -vbqewnhi -Sci -dlclgtk2 -Fu../designer -Fu../debugger -Fu../debugger/frames -Fu../converter -Fu../packager -Fu../packager/frames -Fu../components/custom -Fuframes -Fu. -Fu/usr/lib/fpc/3.0.0/units/x86_64-linux/rtl -Fiinclude -Fiinclude/linux -Fi../images -FE.. -FU../units/x86_64-linux/gtk2 -Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/5 -Flinclude -Fl/etc/ld.so.conf.d/*.conf -Fu../packager/units/x86_64-linux -Fu../components/codetools/units/x86_64-linux -Fu../components/debuggerintf/lib/x86_64-linux -Fu../components/lazutils/lib/x86_64-linux -Fu../lcl/units/x86_64-linux -Fu../lcl/units/x86_64-linux/gtk2 -Fu../components/ideintf/units/x86_64-linux/gtk2 -Fu../components/synedit/units/x86_64-linux/gtk2 -Fu../components/lazcontrols/lib/x86_64-linux/gtk2 -Fu../components/lazdebuggergdbmi/lib/x86_64-linux -Fu../units/x86_64-linux/gtk2 -dx86_64 startlazarus.lpr
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 3.0.0 [2015/11/20] for x86_64
Copyright (c) 1993-2015 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-64
(3104) Compiling startlazarus.lpr
(3104) Compiling redirect_stderr.pas
(3104) Compiling lazarusmanager.pas
/home/laz-user/lazarus/ide/lazarusmanager.pas(130,35) Hint: (5024) Parameter "Sender" not used
/home/laz-user/lazarus/ide/lazarusmanager.pas(414,12) Warning: (5043) Symbol "CommandLine" is deprecated
(9022) Compiling resource ../units/x86_64-linux/gtk2/startlazarus.or
(9015) Linking ../startlazarus
/usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
(1008) 693 lines compiled, 4.6 sec
(1021) 1 warning(s) issued
(1022) 3 hint(s) issued
make[2]: Verzeichnis „/home/laz-user/lazarus/ide“ wird verlassen
make[1]: Verzeichnis „/home/laz-user/lazarus/ide“ wird verlassen
...
Which tells us that startlazarus and lazarus executables were created correctly.

The only thing out of the ordinary (unsupported debug format) was read fairly in the beginning:
Quote
make -C components/chmhelp/lhelp
make[1]: Verzeichnis „/home/laz-user/lazarus/components/chmhelp/lhelp“ wird betreten
/bin/mkdir -p lib/x86_64-linux
make --assume-new=lhelp.lpr OPT=" " lhelp
make[2]: Verzeichnis „/home/laz-user/lazarus/components/chmhelp/lhelp“ wird betreten
/usr/bin/ppcx64 -gs -gl -Sghi -O3 -dlclgtk2 -Fu. -Fu../../../components/lazutils/lib/x86_64-linux -Fu../../../packager/units/x86_64-linux -Fu../../../lcl/units/x86_64-linux -Fu../../../lcl/units/x86_64-linux/gtk2 -Fu../../../components/cairocanvas/lib/x86_64-linux/gtk2 -Fu../../../components/turbopower_ipro/units/x86_64-linux/gtk2 -Fu../../../components/printers/lib/x86_64-linux/gtk2 -Fu../packages/help/lib/x86_64-linux/gtk2 -Fu/usr/lib/fpc/3.0.0/units/x86_64-linux/rtl -FE. -FUlib/x86_64-linux -Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/5 -Flinclude -Fl/etc/ld.so.conf.d/*.conf -dx86_64 lhelp.lpr
Free Pascal Compiler version 3.0.0 [2015/11/20] for x86_64
Copyright (c) 1993-2015 by Florian Klaempfl and others
Warning: The selected debug format is not supported on the current target, not changing the current setting
Target OS: Linux for x86-64
...
But, that shouldn't be a (big) issue.

So the question becomes, what is it that you are actually expecting from the script that you've used ? Are you not able to start lazarus from the given directory ?
Title: Re: Linux Mint 18.1: Install script doesn't work
Post by: molly on January 15, 2017, 10:43:37 pm
Ah, sorry. i initially missed that you've put up a link to the script as well.

What is failing ? did the script not run make install ? (i was unable to locate install output log lines in your file or i must be overlooking things)

In case make install hasn't ran, then you can try to run it manually directly after the script exits. I have no idea what could cause that.
Title: Re: Linux Mint 18.1: Install script doesn't work
Post by: Kralle on January 15, 2017, 10:52:43 pm
the script is "getlaz.sh" from my first posting.

And why crash the script today and work last week? the script works since 7 month without problems in the lazarus part.

Quote
#!/bin/bash
#
# run in your HOME-directory with: sudo sh getlaz.sh  (HR)
#
# (C)by: Michael Van Canneyt (michael@freepascal.org)
#
# Release from: 2016-01-30  (HR)
# additional comments from: Heiko Rompel (HR)
########################################################
# Some variables. Set this to whatever you want
########################################################
#
# Where to download/install everything ? (below home directory)
#
INSTALLDIR=fpc-install
#
# Which FPC version to use ?
#
VERSION=3.0.0
CPUARCH=`uname -p`
#
# Install FPC/Lazarus as root ? (YES or NO)
#
USEROOT=YES
#
# Which lazarus version ?
# set either tag or branch variable.
# If neither is set, trunk is used.
# When lazarus 1.6 is out, this becomes lazarus_1_6
#
# A newer RC is out (HR)
TAG=lazarus_1_6/
BRANCH=

#########################################################
# No variables after this point.
#########################################################
#######################################################################
# Get and install Lazarus
#######################################################################
#
# Determine SVN url
#
BASEURL=http://svn.freepascal.org/svn/lazarus/
#
if [ ! -z "$TAG" ]; then
  SVNURL=$BASEURL/tags/$TAG
else
  if [ ! -z "$BRANCH" ]; then
    SVNURL=$BASEURL/branches/$BRANCH
  else
    SVNURL=$BASEURL/trunk
  fi 
fi 
#
# Check out sources
#
svn co $SVNURL lazarus
#
# Build the IDE
#
cd lazarus
make bigide
#
# Install lazarus (possibly as root)
#
$SUDO make install
#
# That's all folks !
#
# After install Lazarus Restart Linux.


my brain is smoking, but i didn't found the misstake.

greetings
Heiko
Title: Re: Linux Mint 18.1: Install script doesn't work
Post by: Kralle on January 15, 2017, 11:00:10 pm
upps, i understand why you have problems to understand my.
in the text-file some line are missig.

i got now to bed and start a next test monday.

bye
Heiko
Title: Re: Linux Mint 18.1: Install script doesn't work
Post by: molly on January 15, 2017, 11:16:17 pm
And i should pay closer attention as well   :-[

The bottom few lines do indeed invoke make install, except the log abruptly ended without an actual error message.

Yes, it is sometimes better to have a good nights rest and try with a fresh clean head the next day  :D

As soon as you are able to present an actual error message (preferably a complete log of make install) is someone able to help you further.

As of why things 'all of a sudden stop working' i can only guess atm. Please don't despair though, as these kind of errors are often caused by small changes. The most important part (namely compiling lazarus) did execute correctly  :)
Title: Re: Linux Mint 18.1: Install script doesn't work
Post by: Kralle on January 16, 2017, 04:33:37 pm
Hello,

it is absolute crazy.
Today i create logfiles for:
Quote
make bigide > ~/bigide.txt
$SUDO make install > ~/make.txt

to show you what is happend and now its works without problems.

thanks, for your help.

the crazy man from germany
Heiko
TinyPortal © 2005-2018