#can't create sqlite3 database by passing the --database sqlite3 flag in phoenix.

2 messages · Page 1 of 1 (latest)

native mirage
#

Here's the trace of the message.

07:54:25.505 [warning] The on_load function for module Elixir.Exqlite.Sqlite3NIF returned:
{:error,
 {:load_failed,
  'Failed to load NIF library: \'dlopen failed: cannot locate symbol "trunc" referenced by "/data/data/com.termux/files/home/web/yo/_build/dev/lib/exqlite/priv/sqlite3_nif.so"...\''}}

** (UndefinedFunctionError) function Exqlite.Sqlite3NIF.open/2 is undefined (module Exqlite.Sqlite3NIF is not available)
    (exqlite 0.11.7) Exqlite.Sqlite3NIF.open('/data/data/com.termux/files/home/web/yo/yo_dev.db', 6)
    (ecto_sqlite3 0.8.2) lib/ecto/adapters/sqlite3.ex:461: Ecto.Adapters.SQLite3.storage_up_with_path/2
    (ecto 3.9.1) lib/mix/tasks/ecto.create.ex:53: anonymous fn/3 in Mix.Tasks.Ecto.Create.run/1
    (elixir 1.14.0-rc.1) lib/enum.ex:975: Enum."-each/2-lists^foreach/1-0-"/2
    (mix 1.14.0-rc.1) lib/mix/task.ex:421: anonymous fn/3 in Mix.Task.run_task/4
    (mix 1.14.0-rc.1) lib/mix/cli.ex:84: Mix.CLI.run_task/2 ```

It is unable to open the file . Please help
nocturne mist