I wanted to query the database from modbus_serial_master which (I assume) is located at /tmp/.modbus_tcp_master_db
Therefore I did
opkg update
opkg install sqlite3-cli
but it seems it is not linked correctly
root@rut:/tmp# sqlite3
sqlite3: can't load library 'libreadline.so.6'
root@rut:/tmp#
apparently it is linked against libreadline 6 and currently there is 7 installed:
root@rut:/tmp# opkg info libreadline
Package: libreadline
Version: 6.3-1
Depends: libc
Status: unknown ok not-installed
Section: libs
Architecture: ar71xx
MD5Sum: 11817fad3b5f829ee731901c6c7d708e
Size: 101515
Filename: libreadline_6.3-1_ar71xx.ipk
Source: package/libs/libreadline
Description: The Readline library provides a set of functions for use by applications
that allow users to edit command lines as they are typed in. Both Emacs
and vi editing modes are available. The Readline library includes
additional functions to maintain a list of previously-entered command
lines, to recall and perhaps reedit those lines, and perform csh-like
history expansion on previous commands.
Package: libreadline
Version: 7.0-1
Depends: libc
Status: install user installed
Architecture: ar71xx
Installed-Time: 1584092182
root@rut:/tmp# opkg files libreadline
Package libreadline (7.0-1) is installed on root and has the following files:
/usr/lib/libreadline.so.7.0
/usr/lib/libhistory.so.7.0
/usr/lib/libreadline.so.7
/usr/lib/libhistory.so
/usr/lib/libhistory.so.7
/usr/lib/libreadline.so
root@rut:/tmp#
So I tried to install 6 alongside 7, therefore I downloaded libreadline_6.3-1_ar71xx.ipk and tried to install that one:
root@rut:/tmp# opkg install libreadline_6.3-1_ar71xx.ipk
Not downgrading package libreadline on root from 7.0-1 to 6.3-1.
root@rut:/tmp#
Now I am unsure if I can safely downgrade libreadline...
Anyways - to get to the basic point of what I am looking for:
- Is there a recommended way I can access the modbus device variables from command line?
- Do I really need to fiddle around with sqlite3 dependencies in my case?
- I downloaded libreadline_6.3-1_ar71xx and libncurses_5.9-2_ar71xx and extracted the missing linked libraries to /usr/lib manually, this helps for now but I am not that satisfied working my way outside of the packagemanager for productive environment...
Regards
C