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

How do you pass -I flag to perl-build or change the include paths list #51

Closed
ComLock opened this issue Sep 19, 2013 · 1 comment
Closed

Comments

@ComLock
Copy link

ComLock commented Sep 19, 2013

$ plenv install 5.19.3
Fails on my x86_64 mageia with gcc 4.7.2

Reason being:
Your C compiler "cc" doesn't seem to support stdarg or varargs!

The files (stdarg.h and varargs.h) does exist in:
/usr/lib/gcc/x86_64-mageia-linux-gnu/4.7.2/include

And gcc does include them internally:
$ touch foo.c && gcc --verbose -c foo.c 2>&1 |grep -A3 '#include <'

include <...> search starts here:

/usr/lib/gcc/x86_64-mageia-linux-gnu/4.7.2/include
/usr/local/include
/usr/include

But perl-build does not look in that directory:
Directories to use for library searches?
[/usr/local/lib /lib/../lib64 /usr/lib/../lib64 /lib /usr/lib /lib64 /usr/lib64 /usr/local/lib64]

How can I change that list

@tokuhirom
Copy link
Owner

It's a general Perl5 question. Not a perl-build specific. Maybe, you can pass it by -Dotherlibdirs=/usr/lib/perl5/site_perl/5.8.1 or something others.

You can pass -D, -A, -U options to plenv instlal. For more details about options, please read INSTALL document included in perl5 tar ball.

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

No branches or pull requests

2 participants