-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Does cross-compile works for influxdb #2024
Comments
Looks like your system is having a hard time creating the required
Can you pass a config file to influxd, and set the directories as shown in:
Philip On Thu, Mar 19, 2015 at 7:45 PM, Etourneau Gwenn notifications@github.com
|
Specifically: https://github.com/influxdb/influxdb/blob/master/cmd/influxd/config.go#L159 On Thu, Mar 19, 2015 at 8:35 PM, Philip O'Toole philip@influxdb.com wrote:
|
Will be fixed by #2039 |
@otoolep Even if I understand your fix, is not a real fix in case of cross compiling, the problem is the os/user don't work when you cross compile, so saying "failed to determine current user for storage" is not true is more like the way how you determine is false. That's why I was using another library which is working even with cross compiling. |
Determining a home directory is only intended for when the system is spun up without a config. It is only intended to spin up without a config for people to do a quick "test drive" of the system, or local development, not meant for production. Creating a config is very easy, and let's you specify exactly where the data directory should be. So this is less about if we can/can't determine a user home directory, and really only trying to make a convenience for quickly evaluating the system. If you install from our packages, we give you a config to run with and this isn't a problem. If someone were to push up a PR that solves this better without a third party library, and continues to leverage the convenience, I'm sure we would review and likely merge it in. In the meantime, specifying a config is the best route to solve the problem. Thanks again for your attention on this. |
Hi,
I am developing on my Mac so I build everything from my mac,
I used gox for cross-compiling influxdb binary for linux (ubuntu)
But I got this error everytime I try to start my compiled binary on my ubuntu box :
So if anyone have any idea ..
Thanks
The text was updated successfully, but these errors were encountered: