小编Edu*_*eal的帖子

安装passenger和nginx时找不到C编译器gcc

我正在尝试在我的VPS上安装Passenger和Nginx.

我按照这些说明将所有源的所有链接替换为当前版本.

但是当我运行Nginx的Phusion Passenger安装程序时,gcc编译器出错了:

Compiling and installing Nginx...
# sh ./configure --prefix='/opt/nginx' --with-http_ssl_module --with-http_gzip_static_module --with-cc-opt='-Wno-error' --add-module='/usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.17/ext/nginx'
checking for OS
 + Linux 2.6.32-220.el6.x86_64 x86_64
checking for C compiler ... not found

./configure: error: C compiler gcc is not found
Run Code Online (Sandbox Code Playgroud)

我该怎么办?

OBS:我的VPS适用于CentOS 6.2 x64

gcc centos passenger nginx

7
推荐指数
4
解决办法
2万
查看次数

如何使用带有Expo和React Native的绝对路径导入?

我正在尝试使用绝对导入路径而不是使用Expo和React Native 的相对路径.

我查看了博客文档并找不到答案...在反应社区中搜索主题我发现了babel-plugin-module-resolver,但似乎Expo已经在使用它所以我已经将我的.babelrc更改为创建一些别名:

{
  "presets": ["babel-preset-expo"],
  "env": {
    "development": {
      "plugins": [
        "transform-react-jsx-source",
        ["module-resolver", {
          "root": ["./app"],
          "alias": {
            "Components": "./app/components",
          }
        }]
      ]
    }
  }
}
Run Code Online (Sandbox Code Playgroud)

但是我收到以下错误:

Unable to resolve module '@expo/vector-icons/glyphmaps/Entypo.json' 
from '/Users/eduardoleal/Code/lua/rook/node_modules/@expo/vector-icons/Entypo.js': 
Module does not exist in the module map or in these directories:   /Users/eduardoleal/Code/lua/rook/node_modules/@expo/vector-icons/node_modules/@expo/vector-icons/glyphmaps ,   /Users/eduardoleal/Code/lua/rook/node_modules/@expo/vector-icons/glyphmaps  This might be related to https://github.com/facebook/react-native/issues/4968 To resolve try the following:   
1. Clear watchman watches: 'watchman watch-del-all'.   
2. Delete the 'node_modules' folder: 'rm -rf node_modules …
Run Code Online (Sandbox Code Playgroud)

react-native expo

6
推荐指数
3
解决办法
5893
查看次数

标签 统计

centos ×1

expo ×1

gcc ×1

nginx ×1

passenger ×1

react-native ×1