I get an error `invalid address or pointer dereference` when doing `make server`


Why is there no mesherydb.sql file in my ~/.meshery/config?
I’m getting an error like the one in the picture below during make server and it seems to be caused by not finding the db instance. …

1 Like

@dusdjhyeon does this suggestion from @sujal.shah solve your issue? [Building Meshery with WSL2] Error: invalid memory address or nil pointer dereference (solved)

Yes, but it’s little bit different.
We need CGO to use sqlite3, and CGO requires a C compiler to be installed on system, but the problem was that my C compiler was uninstalled when my Ubuntu was initialized.

sudo apt-get update
sudo apt-get install build-essential

If I proceed with the commands below, it should work fine.