Recent

Author Topic: TRichMemo install shows "Partial"  (Read 842 times)

vinntec

  • New Member
  • *
  • Posts: 11
TRichMemo install shows "Partial"
« on: January 21, 2026, 05:39:34 pm »
I have a complex program on Windows Lazarus which works absolutely fine. It includes a pair of TRichMemo controls which I used after getting the Online Package Manager to install "RichMemo".

With the death of Windows 10, I am slowly migrating everything from my small Windows 11 to a Zorin OS (Linux) system. So I installed Lazarus from DEB files and everything looked fine (following instructions for Linux Mint). But when I try and install RichMemo, this appears to work fine with no errors but the OPM shows "Partially" against the install. I have tried completely removing Lazarus/FPC, rebooting, then reinstalling and redoing the package management, but same result.

I can't find anything which explains what "partially" means and what I need to do to complete the installation. Can anyone help because it sounds like something is missing, but I can't see what it is?

I forgot to mention, both are Lazarus 4.4
« Last Edit: January 21, 2026, 05:48:45 pm by vinntec »

rvk

  • Hero Member
  • *****
  • Posts: 6989
Re: TRichMemo install shows "Partial"
« Reply #1 on: January 21, 2026, 06:08:20 pm »
You can press the little + before RichMemo and see what is actually installed and what is not.

vinntec

  • New Member
  • *
  • Posts: 11
Re: TRichMemo install shows "Partial"
« Reply #2 on: January 21, 2026, 06:52:10 pm »
When I did this, richmemo_design showed as downloaded. I tried to install it by itself but this only changed status to "Extracted" (see screenshot). All pre-reqs for it are installed.

Oh my head!
« Last Edit: January 21, 2026, 06:54:28 pm by vinntec »

rvk

  • Hero Member
  • *****
  • Posts: 6989
Re: TRichMemo install shows "Partial"
« Reply #3 on: January 21, 2026, 07:47:30 pm »
Did you recompile the IDE?

Does it show the A component for RichMemo?

vinntec

  • New Member
  • *
  • Posts: 11
Re: TRichMemo install shows "Partial"
« Reply #4 on: January 22, 2026, 07:21:47 am »
If you mean, does RichMemo show as one of the options on the menu, then the answer is no. I think the only thing to do is to reinstall Linux and go through the install process again. The system is only a few days old and the steps I have taken are documented so should take a few hours.

rvk

  • Hero Member
  • *****
  • Posts: 6989
Re: TRichMemo install shows "Partial"
« Reply #5 on: January 22, 2026, 10:56:49 am »
If you mean, does RichMemo show as one of the options on the menu, then the answer is no.
I thought so. The component itself is in richmemo_design which isn't installed but only extracted. You need to install that one.
I don't know why it didn't install for you.

wp

  • Hero Member
  • *****
  • Posts: 13484
Re: TRichMemo install shows "Partial"
« Reply #6 on: January 22, 2026, 11:32:24 am »
I just installed RichMemo from OPM, and it worked fine: Check the item "RichMemo" (which will also check the two sub-items "richmemopackage.lpk" and "richmemo_design.lpk" which you see when you expand the "RichMemo" node); click "Install", confirm to rebuild the IDE, and wait until the IDE restarts.

If your first installation did not work out for you, simply repeat the installation. It is not harmful to install a package over a partially  (or even completely) installed one.

vinntec

  • New Member
  • *
  • Posts: 11
Re: TRichMemo install shows "Partial"
« Reply #7 on: January 22, 2026, 11:49:25 am »
Well... I reinstalled Zorin OS then followed my instructions on how to setup Lazarus again - and this time RichMemo installs no problem and my program compiles and runs (after some minor platform-related  changes).

I suspect what messed things up first time around is that I initially installed Lazarus using apt, but this installed Lazarus 3.0! When I realised this, I carefully followed the instructions to remove Lazarus completely and reboot then did the install from DEB files. But it looks like something from the old version was still lurking somewhere and messing Lazarus up even if I uninstalled and reinstalled Lazarus.

So all good now, sorry to be a nuisance.

vinntec

  • New Member
  • *
  • Posts: 11
Re: TRichMemo install shows "Partial"
« Reply #8 on: January 22, 2026, 01:36:50 pm »
Just to close this item, here is a screenshot of my program working on Linux.

laguna

  • Sr. Member
  • ****
  • Posts: 329
Re: TRichMemo install shows "Partial"
« Reply #9 on: April 06, 2026, 08:06:04 pm »
hi, why non run format rtf in linux ubunt bat run in mac os and windows?
this is my solution but not format in ubuntu/linux:
Code: Pascal  [Select][+][-]
  1. procedure TFrmMain.SetRichEdit;
  2.  
  3.   function UTF8ToRTF(const s: string): string;
  4.   var
  5.     ws: unicodestring;
  6.     i: integer;
  7.     c: widechar;
  8.     code: integer;
  9.   begin
  10.     Result := '';
  11.  
  12.     ws := UTF8Decode(s);
  13.  
  14.     for i := 1 to Length(ws) do
  15.     begin
  16.       c := ws[i];
  17.       code := Ord(c);
  18.  
  19.       // escape caratteri RTF
  20.       if (c = '\') or (c = '{') or (c = '}') then
  21.         Result := Result + '\' + UTF8Encode(c)
  22.  
  23.       // ASCII normale
  24.       else if (code >= 0) and (code <= 127) then
  25.         Result := Result + UTF8Encode(c)
  26.  
  27.       // Unicode (accenti ecc.)
  28.       else
  29.         Result := Result + '\u' + IntToStr(code) + '?';
  30.     end;
  31.   end;
  32.  
  33. var
  34.   ss: TStringStream;
  35.   txt: string;
  36. begin
  37.  
  38.   RichMemo1.Clear;
  39.  
  40.   {$IFDEF LINUX}
  41.  
  42.   // ✅ Linux + macOS: testo semplice (stabile)
  43.   txt :=
  44.     'Note (scorri fino alla fine per leggere tutte le informazioni):' + LineEnding + LineEnding +
  45.     'Il programma carica all''avvio il file di configurazione nella cartella documenti con il nome predefinito:' + LineEnding +
  46.     'backup_configLaz.rbak' + LineEnding + LineEnding +
  47.     'Esempio è possibile cambiare nome file di configurazione e percorso:' + LineEnding +
  48.     './lazbackupincrementalerar --tray --load "/home/vincenzo/Configurazioni/backup_casa.rbak"' + LineEnding + LineEnding +
  49.     'I parametri non sono obbligatori.' + LineEnding + LineEnding +
  50.         'Linux (Ubuntu/Debian): installa dai repository ufficiali:' + LineEnding +
  51.     'Installazione RAR trova il percorso:' + LineEnding +
  52.  
  53.  
  54.  
  55.     'sudo apt update' + LineEnding +
  56.     'sudo apt install rar unrar' + LineEnding +
  57.     'Test per verificare l''installazione:' + LineEnding +
  58.     'which rar' + LineEnding +
  59.     'which unrar'+ LineEnding +
  60.     'sudo find / -name rar 2>/dev/null' + LineEnding ;
  61.  
  62.   RichMemo1.Clear;
  63.   RichMemo1.Text := txt;
  64.  
  65.   {$ELSE}
  66.   ss := TStringStream.Create('{\rtf1\ansi\deff0' + '{\fonttbl' +
  67.     '{\f0\fswiss Helvetica;}' + '{\f1\fmodern Courier New;}' +
  68.     '}' + '{\colortbl ;\red0\green0\blue255;}' + '\fs24 ' + '\b ' +
  69.     UTF8ToRTF('Note (scorri fino alla fine per leggere tutte le informazioni):') +
  70.     '\b0\par\par ' + UTF8ToRTF(
  71.     'Il programma carica all''avvio il file di configurazione che si trova nella cartella documenti:')
  72.     + '\par ' + '\b backup_configLaz.rbak\b0\par\par ' +
  73.     UTF8ToRTF('Esempio:') + '\par ' +
  74.     '\f1\b LazBackup.exe /tray /load "C:\\Configurazioni\\backup_casa.rbak"\b0\f0\par\par '
  75.     +
  76.     UTF8ToRTF('I parametri non sono obbligatori, servono ad automatizzare la procedura.') +
  77.     '\par\par ' + UTF8ToRTF('Installa RAR dal sito ufficiale:') +
  78.     '\par ' + '\b https://www.rarlab.com\b0\par\par ' +
  79.     UTF8ToRTF('Per macOS:') + '\par\par ' + UTF8ToRTF(
  80.     'Verifica se è già installato da terminale con il comando:') +
  81.     '\par ' + '\cf1\f1\b sudo find / -name rar 2>/dev/null\b0\f0\cf0\par\par ' +
  82.     UTF8ToRTF('Per installarlo usa Homebrew. Se Homebrew non è installato, installalo:') + '\par ' +
  83.     '\cf1\f1\b /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"\b0\f0\cf0\par\par '
  84.     +
  85.     UTF8ToRTF('Installa RAR con Homebrew:') + '\par ' +
  86.     '\cf1\f1\b brew install rar\b0\f0\cf0\par ' + '}');
  87.  
  88.   ss.Position := 0;
  89.   RichMemo1.LoadRichText(ss);
  90.   ss.Free;
  91.   {$ENDIF}
  92. end;    

 

TinyPortal © 2005-2018