Shopify CLI not installing due to gem native extension. #1857
Comments
I was having a similar problem but installing this:
and then trying to install Shopify CLI again solved it for me. I found the solution here. |
Same problem here. Have installed ruby 2.7.0 and the recommended fix of installing ruby-dev. On Linux Mint 20.3. Trying to install Shopify App CLI gets the same error as above.
The mkmf log:
Versions
|
After much frustration I found the problem in my machine.
This error indicated I needed libffi installed. Didn't fix the issue.
After some googling the answers suggested I needed But a new error came up:
The following stackoverflow question explained what the issue was and the solution: https://askubuntu.com/questions/1315906/unmet-dependencies-libc6-the-package-system-is-broken So a downgrade was needed: It removed a lot of stuff:
But then I was finally able to install build-essential which included all the relevant lib6c dev packages.
Then finally after all this effort I was able to Tldr: If you have ruby and ruby-dev installed and it's still not working for you then your libc6 might be too up to date. The following downgrade should fix things for you:
|
Hey @regexj, |
I'd like to ask why the debian package is packing scripts to compile the extension and it is not providing prebuilt binaries, as a debian/ubuntu user is expecting from a debian binary package? If you are not intending to provide the debian packages as per how Debian and Ubuntu are doing packages, could you at least highlight to users that? |
Hi @regexj,
After that, I've tried to check the version. But got this -
Can you indicate what's the problem here? |
Install libltdl-dev apt-get install libltdl-dev ( use sudo if required ) Then, install shopify-cli whichever way you prefer, Hope this does the trick :) |
I've installed libtdl-dev and then I've installed the shopify but shopify command can't be found like before. |
I do not understand what do you mean by command cannot be "found like before" ? |
I've installed libtdl-dev. Then I run the shopify command to see the version and got this.
|
First of all, did the installation succeed ? |
This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's dev tooling and experience. |
I wonder why Shopify's developers leave this unsorted. shopify cli in a binary package MUST not contain it's sources and compile on the system. Any Linux user expects to have the binary already compiled from a package installation, and who wants the source, can use the source packages. It's been like this since early days of RedHat, Debian and many other distros. This Issue proves that Shopify developers are not able to understand the standards of any Linux distribution. |
Issue summary
Write a short description of the issue here ↓
So i have been trying to install the shopify-cli using the apt (dabian), but i get this error
ERROR: Error installing shopify-cli:
ERROR: Failed to build gem native extension.
Expected behavior
What do you think should happen?
Shopify-cli should install.
Actual behavior
What actually happens?
Tip: include an error message (in a
<details></details>
tag) if your issue is related to an errorSteps to reproduce the problem
Specifications
The text was updated successfully, but these errors were encountered: