Comments (9)
First of all install Crystal normally, http://crystal-lang.org/docs/installation/on_debian_and_ubuntu.html
You can download a statically compiled 64bit executable from https://github.com/ysbaddaden/shards/releases/tag/v0.4.0
If that doesn't fit your system, download the source tarball from above link and extract it, change into the directory and run make
. That should produce a binary at bin/shards
.
Either way make sure that binary is in your $PATH
, for example by copying it to /usr/local/bin
or a directory in your $HOME
that you add to your $PATH
in your .bashrc
.
Once that's done go to your project and create a shard.yml
as seen on the readme or further described in SPEC.md. Then just run shards install
and you're ready to go.
from shards.
Thank you @jhass, that was exactly what I was looking for.
from shards.
Oh! I had to make a further tweak before it all started working. I was getting this error:
git command failed: git tag --list --no-column
It looks like the installed version of git (1.7) didn't support the --no-column option.
I fixed that by updating git to 2.5
from shards.
Bad luck I guess, looks like that was added with 1.7.11: git/git@d96e3c1
from shards.
Indeed! Mine was 1.7.9.5
from shards.
There is no such thing as a stupid question. Installation steps are indeed lacking. We'll eventually bundle Shards with Crystal distributions, so this should be simpler.
Thanks for the detailed installation steps @jhass!
Please open an issue about Git < 1.7.11 being unsupported (I'll open one otherwise). Maybe we can fix it, or at least fail with a nice error message, prompting to upgrade Git.
from shards.
I'd say we shouldn't support it, it's supported for more than 3 years by now.
from shards.
I've open a new issue #35
I agree with @jhass that it shouldn't be supported, but also with @ysbaddaden that a more meaningful error message would be helpful.
from shards.
Oh! And what about posting @jhass 's installation steps to this project's wiki?
from shards.
Related Issues (20)
- Concurrent installs fail with "Failed to clone" HOT 1
- shards build --mcpu causes lookup of CPU arch as a target incorrectly HOT 3
- Add Pijul resolver HOT 2
- [Website] Could statistics be added? HOT 2
- Windows: A required privilege is not held by the client HOT 3
- Shards installs wrong version of lucky HOT 6
- branch master not satisfy condition >= HOT 5
- Tell why upgrading more
- Inconsistency in `~> x.y.z` requirement with pre-release HOT 1
- Unable to resolve dependency with pre-release version HOT 5
- Refactor resolver code
- `shards remove` command
- Prune command fails to remove symlink HOT 1
- Notify users of deprecated/outdated package HOT 8
- Different behavior between `shards run` and `crystal run` HOT 3
- Installed version in `lib` does not match version in `shard.lock` HOT 3
- verbose option should output also out and err from postinstall script
- `--local` flag doesn't respect CRYSTAL_PATH HOT 3
- FR: Option for out-of-source builds HOT 4
- Equivalent of "go mod vendor"? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shards.