[ANN] Crystal 0.26.1 released!

166 views
Skip to first unread message

Brian J. Cardiff

unread,
Aug 28, 2018, 12:58:43 PM8/28/18
to crysta...@googlegroups.com
Crystal 0.26.1 has been released!

We’ve written a blog post summarizing the changes in this release: https://crystal-lang.org/2018/08/27/crystal-0.26.1-released.html


All the usual installation methods still apply: https://crystal-lang.org/docs/installation/

Happy crystalling!
--
Brian J. Cardiff
[email] bcar...@manas.tech
[web] https://manas.tech

Fth Bdg

unread,
Sep 19, 2018, 5:32:29 AM9/19/18
to Crystal
hi, All,

i'd like to share about installing crystal 0.26.1 on centos 6.4 :
  1. installation using yum repository failed
  2. using tar.gz : OK

here is the details :

1. by using yum repo

[root@server ~]# rpm -qa libevent*
[root@server ~]# yum install crystal
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * extras: mirror.dionipe.net
 * updates: mirror.dionipe.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package crystal.x86_64 0:0.26.1-1 will be installed
--> Processing Dependency: pcre-devel for package: crystal-0.26.1-1.x86_64
--> Processing Dependency: libevent-devel for package: crystal-0.26.1-1.x86_64
--> Running transaction check
---> Package libevent-devel.x86_64 0:1.4.13-4.el6 will be installed
--> Processing Dependency: libevent-headers = 1.4.13-4.el6 for package: libevent-devel-1.4.13-4.el6.x86_64
--> Processing Dependency: libevent-doc = 1.4.13-4.el6 for package: libevent-devel-1.4.13-4.el6.x86_64
--> Processing Dependency: libevent = 1.4.13-4.el6 for package: libevent-devel-1.4.13-4.el6.x86_64
--> Processing Dependency: libevent_extra-1.4.so.2()(64bit) for package: libevent-devel-1.4.13-4.el6.x86_64
--> Processing Dependency: libevent_core-1.4.so.2()(64bit) for package: libevent-devel-1.4.13-4.el6.x86_64
--> Processing Dependency: libevent-1.4.so.2()(64bit) for package: libevent-devel-1.4.13-4.el6.x86_64
---> Package pcre-devel.x86_64 0:7.8-7.el6 will be installed
--> Processing Dependency: pcre = 7.8-7.el6 for package: pcre-devel-7.8-7.el6.x86_64
--> Running transaction check
---> Package libevent.x86_64 0:1.4.13-4.el6 will be installed
---> Package libevent-doc.noarch 0:1.4.13-4.el6 will be installed
---> Package libevent-headers.noarch 0:1.4.13-4.el6 will be installed
---> Package pcre.x86_64 0:7.8-6.el6 will be updated
---> Package pcre.x86_64 0:7.8-7.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================
 Package                      Arch               Version                     Repository           Size
=======================================================================================================
Installing:
 crystal                      x86_64             0.26.1-1                    crystal              36 M
Installing for dependencies:
 libevent                     x86_64             1.4.13-4.el6                base                 66 k
 libevent-devel               x86_64             1.4.13-4.el6                base                 74 k
 libevent-doc                 noarch             1.4.13-4.el6                base                194 k
 libevent-headers             noarch             1.4.13-4.el6                base                 30 k
 pcre-devel                   x86_64             7.8-7.el6                   base                320 k
Updating for dependencies:
 pcre                         x86_64             7.8-7.el6                   base                196 k

Transaction Summary
=======================================================================================================
Install       6 Package(s)
Upgrade       1 Package(s)

Total download size: 37 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): crystal-0.26.1-1.x86_64.rpm                                              |  36 MB     00:01     
(2/7): libevent-1.4.13-4.el6.x86_64.rpm                                         |  66 kB     00:00     
(3/7): libevent-devel-1.4.13-4.el6.x86_64.rpm                                   |  74 kB     00:00     
(4/7): libevent-doc-1.4.13-4.el6.noarch.rpm                                     | 194 kB     00:00     
(5/7): libevent-headers-1.4.13-4.el6.noarch.rpm                                 |  30 kB     00:00     
(6/7): pcre-7.8-7.el6.x86_64.rpm                                                | 196 kB     00:00     
(7/7): pcre-devel-7.8-7.el6.x86_64.rpm                                          | 320 kB     00:00     
-------------------------------------------------------------------------------------------------------
Total                                                                   18 MB/s |  37 MB     00:01     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : libevent-1.4.13-4.el6.x86_64                                                        1/8 
  Installing : libevent-doc-1.4.13-4.el6.noarch                                                    2/8 
  Installing : libevent-headers-1.4.13-4.el6.noarch                                                3/8 
  Installing : libevent-devel-1.4.13-4.el6.x86_64                                                  4/8 
  Updating   : pcre-7.8-7.el6.x86_64                                                               5/8 
  Installing : pcre-devel-7.8-7.el6.x86_64                                                         6/8 
  Installing : crystal-0.26.1-1.x86_64                                                             7/8 
  Cleanup    : pcre-7.8-6.el6.x86_64                                                               8/8 
  Verifying  : pcre-7.8-7.el6.x86_64                                                               1/8 
  Verifying  : libevent-devel-1.4.13-4.el6.x86_64                                                  2/8 
  Verifying  : libevent-1.4.13-4.el6.x86_64                                                        3/8 
  Verifying  : libevent-doc-1.4.13-4.el6.noarch                                                    4/8 
  Verifying  : crystal-0.26.1-1.x86_64                                                             5/8 
  Verifying  : libevent-headers-1.4.13-4.el6.noarch                                                6/8 
  Verifying  : pcre-devel-7.8-7.el6.x86_64                                                         7/8 
  Verifying  : pcre-7.8-6.el6.x86_64                                                               8/8 

Installed:
  crystal.x86_64 0:0.26.1-1                                                                            

Dependency Installed:
  libevent.x86_64 0:1.4.13-4.el6                   libevent-devel.x86_64 0:1.4.13-4.el6                
  libevent-doc.noarch 0:1.4.13-4.el6               libevent-headers.noarch 0:1.4.13-4.el6              
  pcre-devel.x86_64 0:7.8-7.el6                   

Dependency Updated:
  pcre.x86_64 0:7.8-7.el6                                                                              

Complete!


then, i wrote a simple hello world code, and tried to compile it :

[root@server ~]# vim hello.cr
[root@server ~]# crystal build hello.cr 
E-vent5858B-ase.o: In function `*Event::Base#new_event<Int32, LibEvent2::EventFlags, Fiber, &Proc(Int32, LibEvent2::EventFlags, Pointer(Void), Nil)>:Event::Event':
Event::Base:(.text+0xbf): undefined reference to `event_new'
E-vent5858B-ase.o: In function `*Event::Base#new_event<Int32, LibEvent2::EventFlags, IO::FileDescriptor+, &Proc(Int32, LibEvent2::EventFlags, Pointer(Void), Nil)>:Event::Event':
Event::Base:(.text+0x15f): undefined reference to `event_new'
E-vent5858B-ase.o: In function `*Event::Base#new_event<Int32, LibEvent2::EventFlags, IO::FileDescriptor, &Proc(Int32, LibEvent2::EventFlags, Pointer(Void), Nil)>:Event::Event':
Event::Base:(.text+0x1ef): undefined reference to `event_new'
E-vent5858B-ase.o: In function `*Event::Base#new_event<Int32, LibEvent2::EventFlags, File, &Proc(Int32, LibEvent2::EventFlags, Pointer(Void), Nil)>:Event::Event':
Event::Base:(.text+0x27f): undefined reference to `event_new'
E-vent5858E-vent.o: In function `*Event::Event#free:Bool':
Event::Event:(.text+0x1a7): undefined reference to `event_free'
collect2: ld returned 1 exit status
Error: execution of command failed with code: 1: `cc "${@}" -o '/root/hello'  -rdynamic  -lpcre -lgc -lpthread /usr/share/crystal/src/ext/libcrystal.a -levent -lrt -ldl -L/usr/lib -L/usr/local/lib`


it failed, something about "LibEvent2::...", so then i tried to install libevent2-devel, but it conflict with libevent-devel :

# yum install libevent2-devel
Loaded plugins: fastestmirror
.....
.....
Error: libevent2-devel conflicts with libevent-devel-1.4.13-4.el6.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest



2. by using tar.gz

the steps were simple:  download and extract the released binary, then try to compile :

[root@server ~]# tar xvfz crystal-0.26.1-1-linux-x86_64.tar.gz
...
[root@server ~]# ./crystal-0.26.1-1/bin/crystal build hello.cr 
/usr/bin/ld: cannot find -levent (this usually means you need to install the development package for libevent)
collect2: ld returned 1 exit status
Error: execution of command failed with code: 1: `cc "${@}" -o '/root/hello'  -rdynamic  -lpcre -lgc -lpthread /root/crystal-0.26.1-1/share/crystal/src/ext/libcrystal.a -levent -lrt -ldl -L/usr/lib -L/usr/local/lib`

it failed, so then, libevent2 is required to be installed :

[root@server ~]# yum install libevent2-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
.....
Dependencies Resolved

=======================================================================================================
 Package                      Arch                Version                      Repository         Size
=======================================================================================================
Installing:
 libevent2-devel              x86_64              2.0.21-2.el6                 base               82 k
Installing for dependencies:
 libevent2                    x86_64              2.0.21-2.el6                 base              193 k

Transaction Summary
=======================================================================================================
Install       2 Package(s)
....

Installed:
  libevent2-devel.x86_64 0:2.0.21-2.el6                                                                

Dependency Installed:
  libevent2.x86_64 0:2.0.21-2.el6                                                                      

Complete!
[root@server ~]# ./crystal-0.26.1-1/bin/crystal build hello.cr 
[root@server ~]# ./hello 
hello world
[root@server ~]# 


Thanks,-

Roger Pack

unread,
Oct 4, 2018, 2:31:23 AM10/4/18
to Crystal
I didn't notice a git tag for these releases, would that be possible or is it available elsewise?
Thanks.

Roger Pack

unread,
Oct 4, 2018, 2:36:08 AM10/4/18
to Crystal
Oh I see "most releases" are tags, gotcha.

Donna Walke

unread,
Oct 4, 2018, 3:03:43 PM10/4/18
to crysta...@googlegroups.com
Hello,  I think I got a lot of new stuffs available.  Benzodiazepines and painkillers. 

--
You received this message because you are subscribed to the Google Groups "Crystal" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crystal-lang...@googlegroups.com.
To post to this group, send email to crysta...@googlegroups.com.
Visit this group at https://groups.google.com/group/crystal-lang.
To view this discussion on the web visit https://groups.google.com/d/msgid/crystal-lang/5ae82bab-83c3-44b1-9972-07a6292f3c93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Roger Pack

unread,
Oct 9, 2018, 2:48:19 AM10/9/18
to Crystal


On Tuesday, August 28, 2018 at 10:58:43 AM UTC-6, bcardiff wrote:
Crystal 0.26.1 has been released!


Somewhat unrelated, but I find that my server (using SSL) seems to sometimes "stop accepting new connections" recently, possibly after the upgrade to 0.26.1.  This ring a bell at all to anyone? 
Reply all
Reply to author
Forward
0 new messages