Showing posts with label hhvm. Show all posts
Showing posts with label hhvm. Show all posts

Monday, April 14, 2014

Installing HHVM 3.0.1 on Centos 6.5 (64-bit)

3.0.0 is the latest series in the HHVM world. In order to upgrade/install the 3.0.1 package. Follow these instructions

Compared to 2.4 HHVM release, the following packages were upgraded from the stock centos repository. Please be aware of these.

  1. ocaml (from 3.11 to 3.12)
  2. ImageMagick (from 6.5 to 6.8)

If you are here for the first time, configure hop5.in repo like this

 
cd /etc/yum.repos.d
sudo wget http://www.hop5.in/yum/el6/hop5.repo 
After that do a simple

[root@node1 ~]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base elrepo epel extras hop5 mod-pagespeed nginx nikoforge pgdg92 rpmforge rpmforge-extras
              : rpmfusion-free-updates rpmfusion-nonfree-updates updates
Cleaning up Everything
Cleaning up list of fastest mirrors
 
[root@node1 ~]# yum install hhvm
Loaded plugins: fastestmirror
Determining fastest mirrors
epel/metalink                                                                                           |  14 kB     00:00
 * base: mirrors.advancedhosters.com
 * elrepo: ftp.nluug.nl
 * epel: epel.mirror.constant.com
 * extras: mirrors.lga7.us.voxel.net
 * rpmforge: mirror.nl.leaseweb.net
 * rpmforge-extras: mirror.nl.leaseweb.net
 * rpmfusion-free-updates: mirror.us.leaseweb.net
 * rpmfusion-nonfree-updates: mirror.us.leaseweb.net
 * updates: mirror.lug.udel.edu
base                                                                           | 3.7 kB     00:00
base/primary_db                                                                | 4.4 MB     00:01
elrepo                                                                         | 2.9 kB     00:00
elrepo/primary_db                                                              | 625 kB     00:00
epel                                                                           | 4.4 kB     00:00
epel/primary_db                                                                | 6.0 MB     00:01
extras                                                                         | 3.4 kB     00:00
extras/primary_db                                                              |  19 kB     00:00
hop5                                                                           | 2.9 kB     00:00
hop5/primary_db                                                                | 153 kB     00:00
mod-pagespeed                                                                  |  951 B     00:00
mod-pagespeed/primary                                                          | 5.1 kB     00:00
mod-pagespeed                                                                  32/32
nginx                                                                          | 2.9 kB     00:00
nginx/primary_db                                                               |  28 kB     00:00
nikoforge                                                                      | 1.3 kB     00:00
nikoforge/primary                                                              | 3.8 kB     00:00
nikoforge                                                                      8/8
pgdg92                                                                         | 3.7 kB     00:00
pgdg92/primary_db                                                              | 102 kB     00:00
rpmforge                                                                       | 1.9 kB     00:00
rpmforge/primary_db                                                            | 2.7 MB     00:00
rpmforge-extras                                                                | 1.9 kB     00:00
rpmforge-extras/primary_db                                                     | 471 kB     00:00
rpmfusion-free-updates                                                         | 2.7 kB     00:00
rpmfusion-free-updates/primary_db                                              | 267 kB     00:00
rpmfusion-nonfree-updates                                                      | 2.2 kB     00:00
rpmfusion-nonfree-updates/primary_db                                           |  65 kB     00:00
updates                                                                        | 3.4 kB     00:00
updates/primary_db                                                             | 2.6 MB     00:01
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package hhvm.x86_64 0:2.4.0-1.el6 will be updated
---> Package hhvm.x86_64 0:3.0.1-1.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================
 Package                    Arch                         Version                              Repository                  Size
===============================================================================================================================
Updating:
 hhvm                       x86_64                       3.0.1-1.el6                          hop5                       9.4 M

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

Total download size: 9.4 M
Is this ok [y/N]: y
Downloading Packages:
hhvm-3.0.1-1.el6.x86_64.rpm                                                                             | 9.4 MB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : hhvm-3.0.1-1.el6.x86_64                                                                                     1/2
  Cleanup    : hhvm-2.4.0-1.el6.x86_64                                                                                     2/2
  Verifying  : hhvm-3.0.1-1.el6.x86_64                                                                                     1/2
  Verifying  : hhvm-2.4.0-1.el6.x86_64                                                                                     2/2

Updated:
  hhvm.x86_64 0:3.0.1-1.el6

Complete!
[root@node1 ~]#  
If you are upgrading from previous hiphop-php Package, Just do a
[root@node1 ~]# yum update hiphop-php

After this, check that hhvm is installed correctly

[root@node1 ~]# hhvm --version
HipHop VM 3.0.1 (rel)
Compiler: 
Repo schema: e69de29bb2d1d6434b8b29ae775ad8c2e48c5391

Have fun with this new and improved release.


Saturday, October 19, 2013

Install HHVM 2.2.0 Final Release on Centos 6.4 (64-bit)

Facebook released HHVM 2.2.0 couple of days ago and made the package available on multiple distributions.

Setup hop5.in repo as mentioned in this blog post

1. Install the package using yum

[root@node1 x86_64]# yum install hiphop-php-2.2.0-1.el6.x86_64 -y

2. Check the version of newly installed package

[root@node1 x86_64]# hhvm --version
HipHop VM v2.2.0 (rel)
Compiler: 1382176880_483521803
Repo schema: 484929643_1382176880

3. Have fun with this new release :-)

Long list of changelog is available here

Friday, September 06, 2013

Installing Facebook's Hiphop "Kimchi" Release on Centos 6.x , RHEL 6.x

Facebook's hiphop changelog is updated for "Kimchi" release in github with the following list.

"Kimchi" 2-Sep-2013
  - Fix order of custom attributes and visibility in ctor arg promotion
  - Implement CachingIterator
  - Implement RecursiveCachingIterator
  - Generalized heuristic for choosing when to inline in the jit
  - Imported calendar extension
  - Use gcc-4.8.1 by default
  - Improve hhvm commandline parsing logic
  - Fix register_shutdown in session_set_save_handler to match PHP 5.4
  - Add "native" functions for use in Systemlib
  - PHP extension source-compatitblility layer
  - Fix ArrayIterator constructor PHP compatibility
  - Enable building against libmemcached 1.0.8
  - Debugger: $_ not cleared but still printed after exception
  - Fix clone of SplPriorityQueue
  - Debugger: Fix bugs when multiple threads hit the same breakpoint
  - Fix several namespace bugs
  - Several PHP compatibility fixes for ArrayObject and ArrayIterator
  - Fix list assignment with collection literals
  - support "tuple(...)" in initializer expressions
  - HHVM should compile with libmemcached 1.0.9+
  - Support "(new Vector {..})->method()" style syntax
  - use trigger_error in PHP for Redis user errors
  - multiple simplexml fixes
  - fixed serialize/unserialize for SplObjectStorage
  - Implement ReflectionParameter::IsCallable()

I have pushed a new package to the hop5.in repository, Grab the package and test it out.

Major change from packaging point of view is the libmemcached version, which is upgraded to 1.0.16

Follow these steps to upgrade

1. Enable hop5.in repository as mentioned before

2. Do a yum upgrade (or yum install)

yum install hiphop-php-2.1.210.2-1.el6 -y
Resolving Dependencies
--> Running transaction check
---> Package hiphop-php.x86_64 0:2.1.210-4.el6 will be updated
---> Package hiphop-php.x86_64 0:2.1.210.2-1.el6 will be an update
--> Processing Dependency: libmemcached >= 1.0.9 for package: hiphop-php-2.1.210.2-1.el6.x86_64
--> Processing Dependency: libmemcached.so.11()(64bit) for package: hiphop-php-2.1.210.2-1.el6.x86_64
--> Running transaction check
---> Package libmemcached.x86_64 0:0.49-1.el6 will be updated
---> Package libmemcached.x86_64 0:1.0.16-1.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package              Arch           Version                 Repository    Size
================================================================================
Updating:
 hiphop-php           x86_64         2.1.210.2-1.el6         hop5          19 M
Updating for dependencies:
 libmemcached         x86_64         1.0.16-1.el6            hop5         208 k

Transaction Summary
================================================================================
Upgrade       2 Package(s)

Total download size: 19 M
Downloading Packages:
--------------------------------------------------------------------------------
Total                                           777 kB/s |  19 MB     00:24     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : libmemcached-1.0.16-1.el6.x86_64                             1/4 
  Updating   : hiphop-php-2.1.210.2-1.el6.x86_64                            2/4 
  Cleanup    : hiphop-php-2.1.210-4.el6.x86_64                              3/4 
  Cleanup    : libmemcached-0.49-1.el6.x86_64                               4/4 
  Verifying  : hiphop-php-2.1.210.2-1.el6.x86_64                            1/4 
  Verifying  : libmemcached-1.0.16-1.el6.x86_64                             2/4 
  Verifying  : hiphop-php-2.1.210-4.el6.x86_64                              3/4 
  Verifying  : libmemcached-0.49-1.el6.x86_64                               4/4 

Updated:
  hiphop-php.x86_64 0:2.1.210.2-1.el6                                           

Dependency Updated:
  libmemcached.x86_64 0:1.0.16-1.el6                                            

Complete!
 
3. See that new package is installed

bash-4.1# rpm -qa | grep hiphop-php
hiphop-php-2.1.210.2-1.el6.x86_64
4. Check the hhvm version details

bash-4.1# /usr/bin/hhvm --version
HipHop VM v2.1.0-dev (rel)
Compiler: heads/master-0-g13ddbb4ec17cffeeaaa83940016e6811cd71b387
Repo schema: a40e2fdb7f3c4700ef306f956630f09cd1ba53e0
bash-4.1# cd /var/www && /usr/bin/hhvm index.php 
Hello world.
5. Have fun!

NOTE: Please be aware that, from facebook's point of view this is just a internal release in the 2.1.0-dev series.

Monday, September 02, 2013

Getting ready for the faster HHVM (hiphop php) version

UPDATE: Now you can install "Kimchi" release as of 6-Sep-2013 

HHVM (hiphop php) is getting ready for a faster version with the following changes

I have built a preview version as of Sep-1-2013, which can be easily installed on your system.

Steps to Upgrade from 2.1.0 on CentOS-6.x / RHEL-6.x


1. Make sure you have enabled hop5.in repository as mentioned in this blog post.

2. Update hiphop-php

[nareshv@fallenangel ~]$ sudo yum install hiphop-php-2.1.210.1-1.el6
Total download size: 19 M
Is this ok [y/N]: y
Downloading Packages:
hiphop-php-2.1.210.1-1.el6.x86_64.rpm                                                                                                                                          |  19 MB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : hiphop-php-2.1.210.1-1.el6.x86_64   1/2 
  Cleanup    : hiphop-php-2.1.210-4.el6.x86_64     2/2 
  Verifying  : hiphop-php-2.1.210.1-1.el6.x86_64   1/2 
  Verifying  : hiphop-php-2.1.210-4.el6.x86_64     2/2 

Updated:
  hiphop-php.x86_64 0:2.1.210.1-1.el6                                                                                                                                                                 

Complete!


3. Check the version of new Hiphop

[nareshv@fallenangel ~]$ /usr/bin/hhvm --version
HipHop VM v2.1.0-dev (rel)
Compiler: heads/master-0-ged8774975e0c017b8baf09d1547d769b26c5f278
Repo schema: d74c9a7e6b05d0018945a73ae5567bafa294f29d

NOTES:Be sure to test this preview release on your testing environment before using it on production.

Monday, July 15, 2013

Installing HHVM (Hiphop PHP) 2.1.0 On Centos 6.x

HHVM 2.1.0 was released a day ago (as of writing this blog).  In order to install this stable version on your server / development environment. Follow these steps

1. Configure the Repository as mentioned in my previous post

2. Upgrade to the latest version

sudo yum update hiphop-php

3. Confirm that the package is installed correctly

/usr/bin/hhvm --help

NOTE: You need to re-build your we-application (if you are using repo-authoritative mode) with the current version and then only upgrade your production server, or else you might not have this application working correctly.

Have fun with this stable version.

Saturday, July 13, 2013

Friday, May 17, 2013

Install HHVM (Hiphop PHP) on Centos 6.4 (64-bit)

UPDATED: 10/July/2013 - Fixed the errors which are causing repo not available. Sorry for the trouble.

UPDATEd: 19/Oct/2013 - HHVM 2.2.0 Release is available now

UPDATED: 18/Dec/2013 - HHVM 2.3.0 Release is available now  

UPDATED: 14/Apr/2014 - HHVM 3.0.1 Release is available now

I have created a repository and compiled HHVM (v2 of HPHP) rpm packages. Follow these steps to get started.

1. Install Centos 6.x (minimal is preferred)

2. Install epel repository

sudo yum install http://ftp.riken.jp/Linux/fedora/epel/6/i386/epel-release-6-8.noarch.rpm

(or get the latest version from http://ftp.riken.jp/Linux/fedora/epel/6/i386/repoview/epel-release.html)

3. download the hop5 repository configuration file

cd /etc/yum.repos.d

sudo wget http://www.hop5.in/yum/el6/hop5.repo
 
If you are here after Mar-2014, use hhvm as package name instead of hiphop-php

4. Install hiphop-php
sudo yum install hiphop-php

5. Follow the instructions at https://github.com/facebook/hiphop-php to get started


Please note that, i have compiled the required rpms from fedora distribution. DO NOT FILE ANY BUGS WITH CENTOS/FEDORA regarding the rpms that you are about to install from this repoisitory.