Crystal is oops programming language .it is very fast and light. Crystal is a static checking.I t is also compiled language. It does not support windows7,window8 but it is supported by window 10. It is mainly working on Ubuntu. Crystal installation via command. The latest version of the crystal is 0.25. It is a web application framework. The present time it is working of the centerpiece of crystal web development. crystal is similar to a Ruby programming language. Crystal programming clean syntax for development and allow better readability,
How to Install Crystal Reports?
Step-1.Apt configuration is compulsory to add your system.it is easy to set up just run via command.
Step-2. open your terminal to locate your path where you want to install it then add this command your terminal.curl https://dist.crystal-lang.org/apt/setup.sh | sudo bash
Step-3. If you are using manually execute then use the command as a root and write a command on terminal
apt-key adv --keyserver keys.gnupg.net --recv-keys 09617FD37CC06B54
echo "deb https://dist.crystal-lang.org/apt crystal main" > /etc/apt/sources.list.d/crystal.list
apt-get update
Step-4. So you are ready to install crystal report go to the terminal and write this command.
$ sudo apt-get install crystal
Step-5. you also need to install this package build-essential to create a crystal program and write the next command.
$ sudo apt-get install build-essential
Step-6. If you want to upgrade a new version of crystal then you're writing both commands.
$ sudo apt-get update
$ sudo apt-get install crystal
Step-7. Let's try some coding part if u want to write a hello word on crystal then see code.
puts "hello world!"
class softwarequery
def initialize)(@name: string)
end
def software
puts "hello #{@name}!"
end
end
g = softwarequery.new("world")
g.software
HTTP server
puts "hello world!"
0 comments:
Post a comment