Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Rails 4.1.6 start being given Could not find a JavaScript runtime     - RabbitMQ user roles and access control (Linux)

- Python variable type (Programming)

- Regular expressions in Perl (Programming)

- Learning Linux coding style (Programming)

- Single Instance ASM under CRS-4124, CRS-4000 error handling (Database)

- Jigsaw project will solve the problem of Java JAR hell Mody (Programming)

- 10 tips daily Docker (Server)

- Unix / Linux commonly used to clean up disk space command (Linux)

- CentOS7 Minimal minimize installation and then install the GNOME graphical interface (Linux)

- Kubuntu 14.04 desktop to the user how to upgrade KDE 4.13.2 (Linux)

- httpd-2.4 feature (Server)

- To install the latest version of the EPEL on CentOS 5.x or 6.x (Linux)

- tar decompression problems gzip: stdin: not in gzip format (Linux)

- Ora-00600 [fast hot Atkins soft _ that _ Oh, of course not _less_ profile] (Database)

- CentOS 7 open ports (Linux)

- Java Set and List in the relationship and difference (Programming)

- How to update the Linux kernel to improve system performance (Linux)

- How to publish projects to the Jcenter repository using Gradle in Android Studio (Programming)

- Linux System Administrator Network Security Experience (Linux)

- Big Data Common Glossary (Linux)

  Rails 4.1.6 start being given Could not find a JavaScript runtime
  Add Date : 2018-11-21      
  My computer system and Rails version: CentOS 7, Rails4.1.6, Ruby2.0.0

1 Start the server error

#rails server

The new project has just been built, start the service being given:

/home/oss/.gem/ruby/gems/execjs-2.2.1/lib/execjs/runtimes.rb:51:in `autodetect ': Could not find a JavaScript runtime See https://github.com/sstephenson. / execjs for a list of available runtimes. (execJS :: RuntimeUnavailable)

from /home/oss/.gem/ruby/gems/execjs-2.2.1/lib/execjs.rb:5:in `< module: ExecJS> '

from /home/oss/.gem/ruby/gems/execjs-2.2.1/lib/execjs.rb:4:in `< top (required), etc.


method one:

1 have been given the information to actual out a solution link https://github.com/sstephenson/execjs, given the information at the top of

Mounted directly on the line after reading this therubyracer

Reference to the plug-in instructions: https: //github.com/sstephenson/execjs#readme

Install Command

#gem install therubyracer

Success of the process of information is as follows:

[Oss @ localhost t9] $ gem install therubyracer

Fetching: ref-1.0.5.gem (100%)

Successfully installed ref-1.0.5

Fetching: libv8- (100%)

Successfully installed libv8-

Fetching: therubyracer-0.12.1.gem (100%)

Building native extensions. This could take a while ...

Successfully installed therubyracer-0.12.1

Parsing documentation for ref-1.0.5

Installing ri documentation for ref-1.0.5

Parsing documentation for libv8-

Installing ri documentation for libv8-

Parsing documentation for therubyracer-0.12.1

Installing ri documentation for therubyracer-0.12.1

Done installing documentation for ref, libv8, therubyracer after 1 seconds

3 gems installed

Not be a problem, Ann Zhang three gem had been successful

Method two:

Gemfile root of (1) to modify your new projects under

# Vi Gemfile

Locate the following line, remove the comments,

# Gem 'therubyracer', platforms:: ruby

change into

gem 'therubyracer', platforms:: ruby

Save and exit #wq

(2) can be installed with a bundle

#bundle install

Reference rails4 Guides: http: //guides.ruby-china.org/getting_started.html

Method three:

(3) the execjs and therubyracer are not, you can uninstall it and then install nodejs

Official website http://nodejs.org/

Download and install on the line

#tar -xzvf node-v0.10.31.tar.gz

#cd node-v0.10.31

# ./configure


#make install
- Linux kernel network subsystem analysis (Programming)
- xCAT error Unable to dispatch hierarchical sub-command to NORESOLUTION: 3001 (Linux)
- Linux System Getting Started Learning: Disable HTTP forwarding wget in (Linux)
- Easily solve the MySQL database connection error too many (Database)
- To learn from scratch OpenWrt perfect tutorial (Linux)
- Linux kernel RCU (Read Copy Update) lock Brief - prequel (Linux)
- Python Multithreaded Programming (Programming)
- Ubuntu 14.04 users how to install VLC 2.2.0 (Linux)
- How to find on Linux and delete duplicate files: FSlint (Linux)
- Use OpenSSL to generate a certificate (Linux)
- Ubuntu 12.04 install RTL8723BE wireless network card driver (Programming)
- Why is the ibdata1 file growing in MySQL? (Database)
- JITwatch installation under Linux (Linux)
- Cobbler batch install Ubuntu / CentOS system (Linux)
- How to use the ftp tool to transfer files between Windows and Linux (Linux)
- CentOS6.7 text installation system (Linux)
- CentOS yum configuration under local sources (Linux)
- ORA-04091 and Compound Trigger (Oracle 11g) (Database)
- namespace mechanism Linux kernel analysis (Linux)
- Linux platform host to prevent hacking skills (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.