Recent

Author Topic: write problem with fpdoc  (Read 458 times)

jim256

  • Newbie
  • Posts: 2
write problem with fpdoc
« on: January 09, 2026, 12:23:47 pm »
Hi, new user second time. Tinkered with lazarus 5 or 6 years ago.

I'm on ubuntu 22.04, lazarus 4.4. fpdoc produces: unable to write "usr/share/lazarus/4.4.0/docs/xml/lcl/stdctrls.xml".

Briefly booted to win11, seemed to work there. Back to linux and in sheer desperation enabled user write permissions to "usr/share/lazarus/4.4.0/" & everything deeper level. Still unable to write.

Lazarus seems to be able to compile & rebuild itself but not sure everythings 100% working yet. I'd wanted to see more documentation, seems to be a lot needed to learn.

Done os re-installs and lazarus re-installs & tried earlier laz versions going back maybe to 3.6?

Anyway, help getting pointed in right direction would be appreciated. 


dseligo

  • Hero Member
  • *****
  • Posts: 1651
Re: write problem with fpdoc
« Reply #1 on: January 09, 2026, 12:57:21 pm »
Try to build Lazarus from source, somewhere where you have write permissions (i.e. your home directory).
Instructions: https://wiki.freepascal.org/Installing_Lazarus_on_Linux#Build_Lazarus_from_Source

Roland57

  • Hero Member
  • *****
  • Posts: 544
    • msegui.net
Re: write problem with fpdoc
« Reply #2 on: January 09, 2026, 02:01:39 pm »
We would need to know what you tried to do with fpdoc (which command).

Being a Linux user myself, I always use fpcup to install Lazarus, and as dseligo suggested, I always install it in my home directory.
My projects are on Codeberg.

cdbc

  • Hero Member
  • *****
  • Posts: 2575
    • http://www.cdbc.dk
Re: write problem with fpdoc
« Reply #3 on: January 09, 2026, 02:05:29 pm »
Hi
What dseligo said  ...and you could try out 'FpcUpDeluxe' from HERE, it will install into your /home/you/somedirofyourchoice/ directory.
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

jim256

  • Newbie
  • Posts: 2
Re: write problem with fpdoc
« Reply #4 on: January 09, 2026, 07:10:27 pm »
I installed the three latest 4.4 debs. Selected fpdoc editor in view menu, selected say TButton in source editor then Create help item in fpdoc. Got the "unable to write.." error.

Done little else since latest install. A bit of compiling. installed bgrabitmap paackage.

Will try fpcup (again), lots of people say t works well,  if no luck try a build from source in home. Thanks for the suggestions. Be back in a day or two with results.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4660
  • I like bugs.
Re: write problem with fpdoc
« Reply #5 on: January 09, 2026, 08:33:53 pm »
I installed the three latest 4.4 debs. Selected fpdoc editor in view menu, selected say TButton in source editor then Create help item in fpdoc. Got the "unable to write.." error.
That requires a writable directory by design. You try to write documentation for LCL which is part of the Lazarus distribution.

fpcup or fpcupdeluxe is not really needed to install Lazarus but it works, too.
An easier way is to just download the sources from Gitlab (git clone https://gitlab.com/freepascal.org/lazarus/lazarus.git) and run "make", assuming you have FPC installed from the Ubuntu repositories.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

 

TinyPortal © 2005-2018