---
title: "quick fix: ubuntu lib for rails 3.2.7 updated fresh install"
author: "夜鸣猪"
date: "2012-07-31T00:20:43Z"
tags: []
categories: ["编程语言"]
slug: "quick-fix-ubuntu-lib-for-rails-3-2-7-updated-fresh-install"
draft: false
lastmod: "2012-07-31T00:24:43Z"
id: 1612979
url: "https://hlee.iteye.com/blog/1612979"
---

if you are using webkit-driver for selenium in your rails project under ubuntu 12.04 lts
you may need follow lib


```java
sudo aptitude install libqt4-dev libqtwebkit-dev
```




> 
> Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
> 
>     gem 'therubyracer', '~> 0.9.9'
> 
> EDIT: I have also tried adding to the file with:
> 
>     gem 'therubyracer', :platforms => :ruby
> 



```java
sudo apt-get install node.js
```