Bug 17519 - Installation under Lazarus of package SQLite3Laz 0.4 failed
Summary: Installation under Lazarus of package SQLite3Laz 0.4 failed
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Alex Loginov
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-17 22:14 CET by francois eglin
Modified: 2018-07-12 11:17 CEST (History)
1 user (show)

See Also:
Source RPM: Lazarus-1.2.4-4.mga5.src.rpm
CVE:
Status comment:


Attachments

Description francois eglin 2016-01-17 22:14:05 CET
Description of problem: 
with Lazarus, after installation of package SQLite3Laz 0.4 with menu Package > Install/Uninstall this package remains with the state "Current state: selected for installation, not installed, RunAndDesignTime" despite it appears in the column Installed; it has also a green +.on its icon.
The tab SQLdb appears and contains a TSQLite3Connection component; I installed such a component on a form, filled the DataBaseName property and trie to connect it by changing the Connected property; I obtained following error message: Can not load SQLite Client library lib sqlite3.so. Check your installation.

By checking my installation I noticed that the item SQLite3Laz 0.4 appears two times in the list of packages available for installation; installing the first or the second or both did not change the situation.




Version-Release number of selected component (if applicable):


How reproducible: I tried several times to install, obtained the error message, uninstalled; I also uninstalled Lazarus, re-installed it and tried again to install the package: same error message.


Steps to Reproduce:
1.
2.
3.


Reproducible: 

Steps to Reproduce:
Comment 1 Samuel Verschelde 2016-01-18 09:41:18 CET
Assigning to Lazarus maintainer.

Assignee: bugsquad => loginov_alex

Comment 2 Alex Loginov 2016-01-18 22:12:46 CET
Hi Francois,

Many thanks for your bug report.

> package SQLite3Laz 0.4

Are you about /usr/lib(64)/lazarus/components/sqlite/sqlite3laz.lpk ?

Works for me with SQLite3Laz (Data Access tab) and with TSQLite3Connection (SQLdb tab) if lib(64)sqlite3-devel installed.

If you want to start lazarus cleanly, then rm -rf $HOME/.lazarus and to run lazarus-ide

I reproduced your issue if lib(64)sqlite3-devel is not installed:
1) "Can not load SQLite client library "libsqlite3.so". Check your installation." for TSQLite3Connection (SQLdb tab)
2) "/usr/bin/ld: cannot find -lsqlite3" for /usr/lib(64)/lazarus/components/sqlite/sqlite3laz.lpk

Do you have lib(64)sqlite3-devel installed? Please install and try again after "rm -rf $HOME/.lazarus"

I'm waiting your answer.
Comment 3 francois eglin 2016-01-19 14:11:30 CET
(In reply to Alex Loginov from comment #2)

Hi Alex,

glad to read you so quickly; I installed the sqlite3-devel package and MIRACLE the error message does not appear when I connect to a databse.

Many thanks for your hint.

Maybe it could be useful to add a dependancy in order to avoid the problems I experienced.

Thanks again
Comment 4 Samuel Verschelde 2016-01-19 15:11:32 CET
(In reply to francois eglin from comment #3)
> Maybe it could be useful to add a dependancy in order to avoid the problems
> I experienced.

As a weak dependency then (Recommends), unless Lazarus is really unusable without it.
Comment 5 Alex Loginov 2016-01-19 20:48:18 CET
SQLite3Laz (Data Access tab) is not enabled by default.
TSQLite3Connection (SQLdb tab) is enabled by default and needs pkgconfig(sqlite3) for work.
But lazarus is ide for developers and developers should know what dependencies needs for selected component. If to add all dependencies for all components, then it may be big list. Noone distro does it. The same situation for anjuta, gambas, .etc and maintainers do not add dependencies.

Francois, will you check all enabled by default components? I need full list of dependencies. If the list will not big, then I will add Recommends.

Needs more info.
Comment 6 francois eglin 2016-01-21 22:15:47 CET
(In reply to Samuel VERSCHELDE from comment #4)
> (In reply to francois eglin from comment #3)
> > Maybe it could be useful to add a dependancy in order to avoid the problems
> > I experienced.
> 
> As a weak dependency then (Recommends), unless Lazarus is really unusable
> without it.

It is not Lazarus which cannot be used without the sqlite3-devel package, but SQLite.

For me (and I am not a true developer, I only write some applications for my own use as I did in a previous life with Delphi under Windows) add Recommends should be sufficient for that kind of subject.
Comment 7 Alex Loginov 2016-11-22 21:27:36 CET
Should be fixed in lazarus-1.2.4-6.mga6.
Comment 8 Marja Van Waes 2018-07-12 11:17:33 CEST
Closing as OLD, because Mga5 is no longer officially maintained (the bug already got fixed for Mageia 6 and later)

Resolution: (none) => OLD
CC: (none) => marja11
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.