Recent

Author Topic: Unable to create file "/usr/share/lazarus/1.8.4/components/fpweb/lazwebextra.pas  (Read 810 times)

Robert.Thompson

  • Jr. Member
  • **
  • Posts: 56
  • "A very bad coder."
    • Google Voice for Canadians
The error that I am getting when I try to install Weblaz 1.0:

Write error: Unable to create file "/usr/share/lazarus/1.8.4/components/fpweb/lazwebextra.pas"
File: /usr/share/lazarus/1.8.4/components/fpweb/lazwebextra.pas
package main source file

When I look into  /usr/share/lazarus/1.8.4/components/fpweb/ I find lazwebextra.lpk but no lazwebextra.pas

Does anyone know how to fix this?

Thanks,

Rob.
Lazarus:  1.8.4  2018-11-17
FPC:   3.0.4 x86_64-linux-gtk2
System:   Kernel: 4.15.0-39-generic x86_64 bits: 64 gcc: 7.3.0 Cinnamon 3.8.9 Linux Mint 19 Tara
              Phoenix v: 11JB.M044.20100622.hkk date: 06/22/2010
Intel Core i5 M 460 (-MT-MCP-) arch: Nehalem rev.5 cache: 3072 KB
NVIDIA GeForce 310M

jshah

  • Full Member
  • ***
  • Posts: 171
your user id dont have access to write to that folder

that is why Package Installer not able to create file on given path

I suggest use fpupdeluex to install fpc in your home directory


dbannon

  • Hero Member
  • *****
  • Posts: 571
    • tomboy-ng, a rewrite of the classic Tomboy
Actually, FPC is OK as it is, its a problem with Lazarus. Distro package managers install packages in file systems that are not writable by ordinary users. Lazarus normally gets around that (because it rebuilds itself) by putting the newly built binaries in your (hidden) local config dir. Seems thats not happening...

Easy thing to do is use the same package manager to remove Lazarus (but not FPC and FPC-SRC) and manually install Lazarus in your home directory, having lazarus in a writeable dir is a far better model anyway.

Code: Pascal  [Select]
  1. mkdir projects
  2. cd projects
  3. svn checkout http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_8_4
  4. cd lazarus_1_8_4
  5. make

Davo
Lazarus 1.8, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

Robert.Thompson

  • Jr. Member
  • **
  • Posts: 56
  • "A very bad coder."
    • Google Voice for Canadians
Thank you for replying. :)

Once the 'make' has completed and I launch the lazarus ide, it seems that there are many less 'tabs' available than on the linuxmint software manager install.

Do I need to add additional software somehow?

Thanks,

Rob.

Lazarus:  1.8.4  2018-11-17
FPC:   3.0.4 x86_64-linux-gtk2
System:   Kernel: 4.15.0-39-generic x86_64 bits: 64 gcc: 7.3.0 Cinnamon 3.8.9 Linux Mint 19 Tara
              Phoenix v: 11JB.M044.20100622.hkk date: 06/22/2010
Intel Core i5 M 460 (-MT-MCP-) arch: Nehalem rev.5 cache: 3072 KB
NVIDIA GeForce 310M

dbannon

  • Hero Member
  • *****
  • Posts: 571
    • tomboy-ng, a rewrite of the classic Tomboy
Hmm, that might mean that the LinuxMint people have chosen to pre-install some extra things. If they are ones you want, easy to install them now. If you load a project that needs a package thats not installed, you get an appropriate message.....

If you don't need them, or are not sure, I'd wait until you find you find out.

Davo
Lazarus 1.8, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng