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

usql: cannot execute binary file #42

Closed
cheedallarajesh opened this issue Apr 7, 2018 · 5 comments
Closed

usql: cannot execute binary file #42

cheedallarajesh opened this issue Apr 7, 2018 · 5 comments

Comments

@cheedallarajesh
Copy link

Hi,
First, thank you for coming up with a great idea like universal sql command line tool. I love it.

I am trying to install/setup it on Amazon Linux on AWS. After install and set hte $PATH, i tried to run a command against postgresql as document suggested.
I ran into this error: usql: cannot execute binary file

Can you provide steps to overcome it for CentOs linux?

image

Thanks in advance
Rajesh C

@kenshaw
Copy link
Member

kenshaw commented Apr 7, 2018

Please do ls -al in that directory to see what the permissions are. Also, please check what the architecture is of your VM. If you downloaded that or transferred it from a different system, then likely the architecture was not built properly. Please provide the output of file usql, and I can tell you what the issue(s) are.

@cheedallarajesh
Copy link
Author

Thank you for your response.

Here is what you've requested.
image

@kenshaw
Copy link
Member

kenshaw commented Apr 9, 2018

As per the above, you're trying to run a Mach-O executable on a Linux machine. You'll need to either compile directly on the machine (go get -u github.com/xo/usql) or download the release for Linux and extract the usql file and transfer that to your Linux host.

@kenshaw kenshaw closed this as completed Apr 9, 2018
@cheedallarajesh
Copy link
Author

Thank you Kenshaw. I will try as you suggested.

@df1228
Copy link

df1228 commented Aug 13, 2023

λ pwd
/Users/kb24/Downloads/usql-0.14.12-darwin-amd64

λ file usql
usql: data

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