* * *

Author Topic: After upgrade to fpc, Lazarus 1.6.2 stops working.  (Read 4090 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 3952
Re: After upgrade to fpc, Lazarus 1.6.2 stops working.
« Reply #15 on: February 15, 2017, 05:32:58 pm »
I'm sorry, I don't see where you said that.
Because he uses an alternative installer, not the official one.
But he is correct about these dependencies and they *must* be installed.
A normal official full install will also take care of that, btw, but there are some Linux distributions that don't resolve these.

Just install as he explained.
"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

jacmoe

  • Sr. Member
  • ****
  • Posts: 255
    • Jacmoe's Cyber SoapBox
Re: After upgrade to fpc, Lazarus 1.6.2 stops working.
« Reply #16 on: February 15, 2017, 05:59:03 pm »
Some trivia ( from http://www.tldp.org/LDP/Linux-Filesystem-Hierarchy/html/usr.html ):

/usr
Quote
In the original Unix implementations, /usr was where the home directories of the users were placed (that is to say, /usr/someone was then the directory now known as /home/someone). In current Unices, /usr is where user-land programs and data (as opposed to 'system land' programs and data) are. The name hasn't changed, but it's meaning has narrowed and lengthened from "everything user related" to "user usable programs and data". As such, some people may now refer to this directory as meaning 'User System Resources' and not 'user' as was originally intended.

/usr/local
Quote
The original idea behind '/usr/local' was to have a separate ('local') '/usr' directory on every machine besides '/usr', which might be just mounted read-only from somewhere else. It copies the structure of '/usr'. These days, '/usr/local' is widely regarded as a good place in which to keep self-compiled or third-party programs. The /usr/local hierarchy is for use by the system administrator when installing software locally. It needs to be safe from being overwritten when the system software is updated. It may be used for programs and data that are shareable amongst a group of hosts, but not found in /usr. Locally installed software must be placed within /usr/local rather than /usr unless it is being installed to replace or upgrade software in /usr.

So, why is Lazarus and FPC being put in /usr/local ?

It is because 'These days, '/usr/local' is widely regarded as a good place in which to keep self-compiled or third-party programs.'

Everything under /usr - including /usr/local - is still read-only.

Which is why, as a Linux user, I would recommend against installing Lazarus/FPC globally, if you intend to do recompile the IDE, install packages, ..
Especially since Lazarus does not provide mechanisms for becoming root in the package install window.

Yes, fpcupdeluxe is not official, but it is widely used, and deserves to carry an official stamp, since it is essentially a convenience wrapper for the standard build process.

Edit:
I was wrong, because the official wiki page for getting Lazarus on Linux actually recommends it:
Quote
It is recommended to use the fpcUP updater-installer for first time users of Lazarus, which installs fpc & Lazarus in one go into a single subdirectory structure ( ~/development ).
See http://wiki.freepascal.org/Installing_Lazarus#Installing_Lazarus_under_Linux

fpcupdeluxe is the successor of fpcup (it builds upon it), so IMO the wiki should be updated.
And the recommendation should IMO be made much stronger than it currently is.

A normal official full install will also take care of that, btw, but there are some Linux distributions that don't resolve these.
The difference is that he is now building Lazarus / FPC from source, and that requires some additional packages.  :)
« Last Edit: February 15, 2017, 06:16:57 pm by jacmoe »
more signal - less noise

lab51

  • New member
  • *
  • Posts: 15
Re: After upgrade to fpc, Lazarus 1.6.2 stops working.
« Reply #17 on: February 15, 2017, 06:38:44 pm »
Yes, sorry, I see that now. I misread.

I was expecting the script/program to be a little more intelligent, though. Not much of installer if it fails like this.

jacmoe

  • Sr. Member
  • ****
  • Posts: 255
    • Jacmoe's Cyber SoapBox
Re: After upgrade to fpc, Lazarus 1.6.2 stops working.
« Reply #18 on: February 15, 2017, 06:41:20 pm »
I think that failing due to missing dependencies is the right thing to do.
You don't want the script to be so intelligent that it installed the missing packages for you?
more signal - less noise

lab51

  • New member
  • *
  • Posts: 15
Re: After upgrade to fpc, Lazarus 1.6.2 stops working.
« Reply #19 on: February 15, 2017, 06:41:51 pm »
I can't seem to install libX11-dev.

sudo apt-get install libX11-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libX11-dev


Lazarus has to be the most frustrating software to install that I've ever encountered.  >:(

jacmoe

  • Sr. Member
  • ****
  • Posts: 255
    • Jacmoe's Cyber SoapBox
Re: After upgrade to fpc, Lazarus 1.6.2 stops working.
« Reply #20 on: February 15, 2017, 06:43:50 pm »
The name actually is libx11-dev - try that!

A pity that the script does not spell the package name right..
« Last Edit: February 15, 2017, 06:46:04 pm by jacmoe »
more signal - less noise

Handoko

  • Hero Member
  • *****
  • Posts: 1321
  • My goal: build my own game engine using Lazarus
Re: After upgrade to fpc, Lazarus 1.6.2 stops working.
« Reply #21 on: February 15, 2017, 06:46:12 pm »
Yes, the letter 'x' is not a capital letter.

I recommend you to use Synaptic Package Manager. It is easier than using Linux Terminal.

jacmoe

  • Sr. Member
  • ****
  • Posts: 255
    • Jacmoe's Cyber SoapBox
Re: After upgrade to fpc, Lazarus 1.6.2 stops working.
« Reply #22 on: February 15, 2017, 06:50:46 pm »
Lazarus has to be the most frustrating software to install that I've ever encountered.  >:(
Your Linux skills will increase significantly after this, believe me - you will become a higher level Linux guru.
« Last Edit: February 15, 2017, 06:53:07 pm by jacmoe »
more signal - less noise

Handoko

  • Hero Member
  • *****
  • Posts: 1321
  • My goal: build my own game engine using Lazarus
Re: After upgrade to fpc, Lazarus 1.6.2 stops working.
« Reply #23 on: February 15, 2017, 06:55:03 pm »
No pain no gain.

I remember the first time I use Linux. It was very hard, but now I'm happy it has many advantages compare to Windows.

lab51

  • New member
  • *
  • Posts: 15
Re: After upgrade to fpc, Lazarus 1.6.2 stops working.
« Reply #24 on: February 15, 2017, 07:04:56 pm »
The name actually is libx11-dev - try that!

A pity that the script does not spell the package name right..

Yes, I should have thought of that. These things only happen when you're up against the wall on a deadline.

Those installed fine, but now I get:

sudo apt-get install build-essentials subversion
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package build-essentials


I appreciate your continued help.

jacmoe

  • Sr. Member
  • ****
  • Posts: 255
    • Jacmoe's Cyber SoapBox
Re: After upgrade to fpc, Lazarus 1.6.2 stops working.
« Reply #25 on: February 15, 2017, 07:07:04 pm »
Sorry about that:
build-essential

Without the 's' at the end. My fault.  :'(
( Original posts corrected )

A good idea is to use Synaptic to visually check if the packages are available. As Handoko pointed out.
more signal - less noise

lab51

  • New member
  • *
  • Posts: 15
Re: After upgrade to fpc, Lazarus 1.6.2 stops working.
« Reply #26 on: February 15, 2017, 07:11:55 pm »
Sorry about that:
build-essential

Without the 's' at the end. My fault.  :'(
( Original posts corrected )

A good idea is to use Synaptic to visually check if the packages are available. As Handoko pointed out.

No problem. If I had more time to work through it, it would be better. But I have only an hour now to get a small demo running on lazarus.

sudo apt-get install build-essential subversion
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package build-essential is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'build-essential' has no installation candidate

jacmoe

  • Sr. Member
  • ****
  • Posts: 255
    • Jacmoe's Cyber SoapBox
Re: After upgrade to fpc, Lazarus 1.6.2 stops working.
« Reply #27 on: February 15, 2017, 07:16:17 pm »
That does not sound good.

What happens if you try to install something that depends on it, like 'apt-build' ?
more signal - less noise

lab51

  • New member
  • *
  • Posts: 15
Re: After upgrade to fpc, Lazarus 1.6.2 stops working.
« Reply #28 on: February 15, 2017, 07:18:53 pm »
That does not sound good.

What happens if you try to install something that depends on it, like 'apt-build' ?

I chose different sources and rescanned in Update Manager. Now it's installing and processing better.

Still can't install via fpcupdeluxe. I'm checking the errors. :(

fpcupdeluxe: ERROR: FPC: running make distclean failed: could not find compiler (/home/sparky/fpcupdeluxe/fpcbootstrap/ppcx64)
fpcupdeluxe: ERROR: Tried to get FPC version from version.pas, but no version.pas found
Performing a checkout ... please wait, could take some time.
SVN could not connect to the desired repository. URL:
http://svn.freepascal.org/svn/fpc/tags/release_3_0_2
Please check your connection. Or run the command to try yourself:
Executing : /usr/bin/svn "checkout" "--quiet" "--non-interactive" "--trust-server-cert" "-r" "HEAD" "http://svn.freepascal.org/svn/fpc/tags/release_3_0_2/" "/home/sparky/fpcupdeluxe/fpcsrc" (working dir: )
Performing a checkout ... please wait, could take some time.
SVN could not connect to the desired repository. URL:
http://svn.freepascal.org/svn/fpc/tags/release_3_0_2
Please check your connection. Or run the command to try yourself:
Executing : /usr/bin/svn "checkout" "--quiet" "--non-interactive" "--trust-server-cert" "-r" "HEAD" "http://svn.freepascal.org/svn/fpc/tags/release_3_0_2/" "/home/sparky/fpcupdeluxe/fpcsrc" (working dir: )
Performing a checkout ... please wait, could take some time.
SVN could not connect to the desired repository. URL:
http://svn.freepascal.org/svn/fpc/tags/release_3_0_2
Please check your connection. Or run the command to try yourself:
Executing : /usr/bin/svn "checkout" "--quiet" "--non-interactive" "--trust-server-cert" "-r" "HEAD" "http://svn.freepascal.org/svn/fpc/tags/release_3_0_2/" "/home/sparky/fpcupdeluxe/fpcsrc" (working dir: )
ERROR: Fpcupdeluxe failed.

jacmoe

  • Sr. Member
  • ****
  • Posts: 255
    • Jacmoe's Cyber SoapBox
Re: After upgrade to fpc, Lazarus 1.6.2 stops working.
« Reply #29 on: February 15, 2017, 07:47:03 pm »
I am not sure, but when in doubt: rm -rf ~/fcpupdeluxe and give it another go.

Sometimes, I find that first installing only FPC and then both helps when it errors out.

I am sorry that you have so much trouble..
Linux is great, but sometimes it follows the laws of Murphy and every single thing that can go wrong, goes wrong - especially when dead-lines are closing in on you ..  :(

Edit:
Looks like Subversion is having some trouble connecting.
Have you tried checked out a Subversion repository (any repository) in the terminal?
Code: Bash  [Select]
  1. svn checkout http://svn.freepascal.org/svn/fpc/tags/release_3_0_2/ /home/sparky/testsvnrepo
« Last Edit: February 15, 2017, 07:53:30 pm by jacmoe »
more signal - less noise

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus