How to install libdev-ssl and openssl for the powerpc64-unknown-linux-gnu target? #999
-
I've tried doing the basic 'recipe' to install it but ubuntu does not support the ppc64 arch so i have modified all the scripts and changed the powerpc64-unknown-linux-gnu dockerfile to use debian (it has a ppc64 port) in the hope of getting a bit closer but apt-get still cannot find libssl-dev if i try install from pre-built commands, even if I manually add port sources etc. I have tested using regular cargo in a ppc64 qemu kvm which has openssl and libssl-dev installed and get a slow as molasses but successful compile when I set these variables (with a default installation of libssl-dev):
Which file and where in it can i add an For reference, I've copied the latest scripts and dockerfile for the ppc64 target and modified them for debian here, and just need libssl-dev actually installed during the build process for it to work. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
doing
gets me a bit closer
|
Beta Was this translation helpful? Give feedback.
-
This seems to work file #!/usr/bin/env bash
mv /etc/apt/sources.list /etc/apt/sources.list.bak
mv /etc/apt/sources.d /etc/apt/sources.d.bak
echo -e "deb http://archive.debian.org/debian jessie main\ndeb http://archive.debian.org/debian jessie-backports main\ndeb http://ftp.ports.debian.org/debian-ports unstable main\ndeb http://ftp.ports.debian.org/debian-ports unreleased main" > /etc/apt/sources.list
dpkg --add-architecture ppc64
apt-get update
cd $(mktemp -d)
apt-get -d --no-install-recommends download libssl-dev:ppc64
dpkg -x libssl-dev* /
mv -f /etc/apt/sources.list.bak /etc/apt/sources.list
mv -f /etc/apt/sources.d.bak /etc/apt/sources.d
dpkg --remove-architecture ppc64 Cross.toml: [target.powerpc64-unknown-linux-gnu]
pre-build = "powerpc64.sh" fn main() {
println!("{}, {}", openssl::version::version(), openssl::version::platform());
} [package]
name = "ssl-test"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
openssl = "0.10.41"
|
Beta Was this translation helpful? Give feedback.
This seems to work
file
powerpc64.sh
C…