Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqlite3 messes up between environments (ELF headers) #713

Closed
javorszky opened this issue Sep 12, 2013 · 5 comments
Closed

sqlite3 messes up between environments (ELF headers) #713

javorszky opened this issue Sep 12, 2013 · 5 comments

Comments

@javorszky
Copy link
Contributor

So the binaries for sqlite are awesome, however, look at this gif right here:

running-ghost-vagrant-not

This happens after database is modified in macos. Sqlite in vagrant then can't read it for some weird reason.

@javorszky
Copy link
Contributor Author

Also, my database seems to have been wiped. At least there was no user, and I'm sure haven't trashed it.

@ErisDS
Copy link
Member

ErisDS commented Sep 13, 2013

sqlite3 is a native application. It will only work on the environment you compile it on.

I use vagrant and macos as well, and sometimes switch environments - I see the same thing you do, I have to recompile sqlite by running npm install sqlite3.

Your databases should not have been wiped. If this has definitely happened - check the contents, please try to reproduce how it happened and raise that as an issue?

@ErisDS ErisDS closed this as completed Sep 13, 2013
@springmeyer
Copy link

@ErisDS - sqlite3 not sqlite. Also npm install sqlite3 works but even better to recommend is npm rebuild which will hunt down all modules with a binding.gyp and re-run their install commands. In the case of sqlite3 it will install the right binary.

@ErisDS
Copy link
Member

ErisDS commented Oct 29, 2013

@springmeyer thanks! I've updated my typo. This is only something encountered by developers running vagrant and so sharing their ghost between 2 environments.

@springmeyer
Copy link

@ErisDS sounds good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants