# Remix IDE环境搭建（Ubuntu16）

## 编译

```
#建议用root运行，里面部分代码没有使用sudo权限
npm install remix-ide -g

#如果安装时出现root没有权限的问题，请用以下代码运行
npm install remix-ide -g --unsafe-perm
```

## 运行

```
remix-ide
```

如果出现以下错误

```
Cannot find module './build/Release/scrypt'
```

需要修改一行代码

```
#修改此文件
vi /usr/lib/node_modules/remix-ide/node_modules/scrypt/index.js
#找到这一行
require("./build/Release/scrypt")
#修改为这一行
require("scrypt")
```

## 修改监听地址

```
#默认127.0.0.1:8080
#如果需要改变地址，需要修改此文件
vi /usr/bin/remix-ide
#找到这一行
server.listen(8080, '127.0.0.1', function () {})
#修改为这一行
server.listen(8080, '0.0.0.0', function () {})
#重启remix-ide
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://neochain.gitbook.io/project/ethereum/remix-ide-huan-jing-da-jian-ubuntu16.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
