Everything was done according to official documentation docks

sudo dnf install crystal 

Gives out:

 Last metadata expiration check: 0:47:36 ago on Thu May 5 22:13:54 2016. Package crystal-0.15.0-1.x86_64 is already installed, skipping. Dependencies resolved. Nothing to do. Complete! 

But when you try to run the file through it, it gives out bash: crystal: command not found

What is the problem?

  • And what is your version of the distribution? - D-side
  • Please add to the question the list of files in this package ( rpm -ql crystal ). - aleksandr barakin
  • package crystal is not installed - Iisusyoumom
  • version fedora 23 - Iisusyoumom
  • @Iisusyoumom, package crystal is not installed - was this the answer to me? well, then enter a more complete package name - as in your question: crystal-0.15.0-1.x86_64 . // however, if the package was collected by the same team ... ghm ... programmers as for debian, the crystal script is most likely located in /opt/crystal/bin . here try it and run. - aleksandr barakin

1 answer 1

Package crystal-0.15.0-1.x86_64 is already installed

judging by this information, you already have the http://dist.crystal-lang.org/rpm/crystal-0.15.0-1.x86_64.rpm package installed

After installing this package, the crystal script should appear in the /opt/crystal/bin/ , which you probably need. you can start it by specifying the full path to it:

 /opt/crystal/bin/crystal опции параметры ... 

in order to be able to run this script just by name, without specifying the full path to it, add this path to the value stored in the PATH environment variable:

 export PATH="$PATH:/opt/crystal/bin" 

In order not to execute this command manually in each instance of the shell , you can add it to the end of your shell's configuration file, which is called ~/.имяrc . You can find out the name of the shell like this:

 $ echo $SHELL /bin/bash 

This means that the file to which you can add the command is: ~/.bashrc .