json1 extenstion won't load in command shell

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

json1 extenstion won't load in command shell

Phil Dagosto
SQLite version 3.22.0 2018-01-22 18:45:57
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite> pragma compile_options;
COMPILER=gcc-4.8.5 20150623 (Red Hat 4.8.5-11)
ENABLE_JSON1
THREADSAFE=1
sqlite> .load ./json1
Error: error during initialization:
sqlite> .load ./json1.so
Error: error during initialization:

I compiled the extension as recommended by the documentation:

gcc -g -fPIC -shared ext/misc/json1.c -o json1.so

Is there some trick to this or something I'm missing?

Thanks in advance
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|

Re: json1 extenstion won't load in command shell

Richard Hipp-3
On 1/26/18, Phil Dagosto <[hidden email]> wrote:
> SQLite version 3.22.0 2018-01-22 18:45:57
> Enter ".help" for usage hints.
> Connected to a transient in-memory database.
> Use ".open FILENAME" to reopen on a persistent database.
> sqlite> pragma compile_options;
> COMPILER=gcc-4.8.5 20150623 (Red Hat 4.8.5-11)
> ENABLE_JSON1

The JSON1 extension is built into the shell.  It doesn't need to be
loaded separately.

> THREADSAFE=1
> sqlite> .load ./json1
> Error: error during initialization:
> sqlite> .load ./json1.so
> Error: error during initialization:
>
> I compiled the extension as recommended by the documentation:
>
> gcc -g -fPIC -shared ext/misc/json1.c -o json1.so
>
> Is there some trick to this or something I'm missing?
>
> Thanks in advance
> _______________________________________________
> sqlite-users mailing list
> [hidden email]
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
>


--
D. Richard Hipp
[hidden email]
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users