Skip to content

install-orange.sh 获取的luajit目录不对 #414

@jimchou800

Description

@jimchou800

执行

sudo sh install/install-orange.sh

报错

Error: unknown option '--with-cc-opt'
使用的Orange版本

v0.8.1

需求或场景

install-orange.sh 安装orange

期望的结果

正确安装

错误的结果

按照openresty 官网文档安装的openresty目录结构

/usr/local/openresty
  /luajit
  /nginx
  /bin

而openresty -V的输出是
```shell
[root@centos7 nginx]# openresty -V
nginx version: openresty/1.15.8.3
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)
built with OpenSSL 1.0.2k-fips  26 Jan 2017
TLS SNI support enabled
configure arguments: --prefix=/usr/local/openresty/nginx --with-cc-opt=-O2 --add-module=../ngx_devel_kit-0.3.1rc1 --add-module=../echo-nginx-module-0.61 --add-module=../xss-nginx-module-0.06 --add-module=
LUA_JIT_DIR=`$OR_EXEC -V 2>&1 | grep prefix | grep -Eo 'prefix=(.*?)/nginx' | grep -Eo '/.*/'`

获取的jit目录不对

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions