How are we suppose to help you ?
fpc -B test.pas
Free Pascal Compiler version 3.2.2 [2021/05/16] for x86_64
Copyright (c) 1993-2021 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling test.pas
Compiling lpsolve.pas
test.pas(24,11) Error: Identifier not found "TbSolver"
test.pas(29,3) Error: Identifier not found "TbSolver"
test.pas(30,13) Error: Identifier not found "TbSolver"
test.pas(32,24) Error: Identifier not found "TbSolver"
test.pas(32,58) Error: Identifier not found "TbSolver"
test.pas(33,8) Error: Identifier not found "TbSolver"
test.pas(48,25) Error: Identifier not found "StringGrid1"
test.pas(51,16) Error: Identifier not found "s"
test.pas(52,16) Error: Identifier not found "TbSolver"
test.pas(53,26) Error: Identifier not found "TbSolver"
test.pas(56,31) Error: Identifier not found "TbSolver"
test.pas(57,21) Error: Identifier not found "TbSolver"
test.pas(60,76) Error: Identifier not found "StringGrid1"
test.pas(70,6) Error: Identifier not found "TbSolver"
test.pas(71,16) Error: Identifier not found "TbSolver"
test.pas(74,25) Error: Identifier not found "TbSolver"
test.pas(75,14) Error: Identifier not found "TbSolver"
test.pas(98,4) Fatal: There were 17 errors compiling module, stopping
Fatal: Compilation aborted
Error: /home/apps/fpc/3.2.2/bin/x86_64-linux/ppcx64 returned an error exitcode
And that is after wasting time getting things setup and create a test project.