Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mv: nginx.xsc: No such file or directory while installing nginx-full --with-perl #361

Open
5 tasks done
donysukardi opened this issue Jan 21, 2019 · 5 comments
Open
5 tasks done

Comments

@donysukardi
Copy link

donysukardi commented Jan 21, 2019

Indicate troubleshooting steps taken

  • Ran brew update and retried your prior step?
  • Ran brew doctor, fixed as many issues as possible and retried your prior step?
  • Checked that a similar issue hasn't already been filed?
  • Looked up the software bug tracker if reporting a build error?
  • If you're seeing permission errors tried running sudo chown -R $(whoami) $(brew --prefix)?

Bug reports / build errors:

$ brew install nginx-full --with-perl
==> Installing nginx-full from denji/nginx
==> Downloading https://nginx.org/download/nginx-1.15.8.tar.gz
Already downloaded: /Users/donysukardi/Library/Caches/Homebrew/downloads/58d1c431456260ff6b102d21e73f44a3118a03a05331cdfa4427e2eadeaa2871--nginx-1.15.8.tar.gz
==> ./configure --prefix=/usr/local/Cellar/nginx-full/1.15.8 --with-http_ssl_module --with-pcre --with-ipv6 --sbin-path=/usr/local/Cellar/nginx-full/1.15.8/b
==> make install
Last 15 lines from /Users/donysukardi/Library/Logs/Homebrew/nginx-full/02.make:
mv nginx.xsc nginx.c
mv nginx.xsc nginx.c
cc -c  -I ../../../../../src/core -I ../../../../../src/event -I ../../../../../src/event/modules -I ../../../../../src/os/unix -I ../../../../../objs -I ../../../../../src/http -I ../../../../../src/http/modules -I ../../../../../src/http/modules/perl -fno-common -DPERL_DARWIN -mmacosx-version-min=10.14 -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -DPERL_USE_SAFE_PUTENV -I/usr/local/Cellar/perl/5.28.1/lib/perl5/5.28.1/darwin-thread-multi-2level/CORE -g -I/usr/local/include -I/usr/local/opt/pcre/include -I/usr/local/opt/openssl/include -O   -DVERSION=\"1.15.8\" -DXS_VERSION=\"1.15.8\"  "-I/usr/local/Cellar/perl/5.28.1/lib/perl5/5.28.1/darwin-thread-multi-2level/CORE"   nginx.c
mv: nginx.xsc: No such file or directory
make[2]: *** [nginx.c] Error 1
make[1]: *** [install_perl_modules] Error 2
make[1]: *** Waiting for unfinished jobs....
In file included from nginx.xs:13:
../../../../../src/http/modules/perl/ngx_http_perl_module.h:17:10: fatal error: 'EXTERN.h' file not found
#include <EXTERN.h>
         ^~~~~~~~~~
1 error generated.
make[2]: *** [nginx.o] Error 1
make[1]: *** [objs/src/http/modules/perl/blib/arch/auto/nginx/nginx.bundle] Error 2
make: *** [install] Error 2

Brief summary of issue:

I'm getting the above error while running brew install nginx-full --with-perl

The complete command that you issued:

brew install nginx-full --with-perl

Link output by brew gist-logs <formula>:

https://gist.github.com/9344201e56a35d0f5d2a98ef72f4acd3

Output of brew config:

HOMEBREW_VERSION: 1.9.2
ORIGIN: https://github.com/Homebrew/brew
HEAD: 7be9ac1e9d550df18392550d611c5ff10b91292b
Last commit: 7 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 9d1020af324877a70bdadb3d2debbf0a426edfab
Core tap last commit: 11 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_GITHUB_API_TOKEN: set
HOMEBREW_LOGS: /Users/donysukardi/Library/Logs/Homebrew
CPU: quad-core 64-bit skylake
Homebrew Ruby: 2.3.7 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 10.0 build 1000
Git: 2.17.2 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 1.8.0_131
macOS: 10.14.2-x86_64
CLT: 10.1.0.0.1.1539992718
Xcode: 10.1
XQuartz: 2.7.11 => /opt/X11
@denji
Copy link
Owner

denji commented Jan 21, 2019

$ brew install perl
$ brew install nginx-full --with-perl

@denji denji closed this as completed in 78f31e8 Jan 21, 2019
@donysukardi
Copy link
Author

@denji thanks. i did exactly that and am still getting some error. any idea what i might be missing out?

with --HEAD
image

without --HEAD
image

@denji denji reopened this Jan 22, 2019
@denji
Copy link
Owner

denji commented Jan 22, 2019

The problem seems to be that we shouldn't use system perl. Since we need use userland Homebrew (perl).

@arodionova
Copy link

@denji any updates on this issue?

@JParkinson1991
Copy link

Can confirm that this is not working for me either, even when installing perl via homebrew prior to installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants