-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Docker php:7.4-fpm-alpine pecl install and build from source fails #31
Comments
Is there a known solution to this? I'm running into the same problem with PHP 8.1.10 on Alpine 3.16. I also have |
@Kabingeran Why would anyone message you privately to discuss this topic? Just post your solution here if you have one |
@adrianguenter In each case, it will probably be different. Why write to me in private? To get your solution. Well, try making symbolic links. This should help. |
What symbolic links do you mean? I have exactly the same issue when trying to build the extension from source. |
@epoxa Yeah, I don't know why they're being so cryptic. There's definitely a general purpose solution to this, so if they've solved it I wish they'd just share it with the community. |
There is no universal solution. Try installing lapack with the specified version and making symlinks if needed. There are several deprecation errors after installing on 8.1. No need to install on 8.1 yet. |
Most things can be generalized to a certain degree, though, and I'm sure that is the case here as well. You're being intentionally cryptic for some strange reason. |
You need to know the Alpine version you are using (
|
PS: if and once #39 will be merged, and a new version is published on PECL, I can update my |
It seems PECL has been updated. For Alpine in Docker this worked for me:
|
Yep, that works. https://github.com/RubixML/Tensor/blob/master/.github/workflows/ci-ext.yml#L40 |
@Kabingeran you can also use this script of mine to install tensor (and a ton of other PHP extensions) without having to worry about the system requirements (apk/apt libraries, symbolic links, and so on).
and you are done. |
I tried it on Alpine 3.16. It is unlikely that anyone will need older versions. |
Versions according to https://pkgs.alpinelinux.org/packages
.Dockerfile for
pecl install tensor
Error from
pecl install tensor
:Fixed by
apk add libexecinfo-dev
awslabs/aws-lambda-cpp#124 (comment)But then other error pops up:
musl/bin/ld file is there.
Also tried building from source - same error on
make
step pops up..Dockerfile for
build tensor from source
Error from
build tensor from source
:What am I missing here?
The text was updated successfully, but these errors were encountered: