To create the dierectoy and install the toolchain you must be "root".
<code bash>
#For PowerPC:
wget https://share.netmodule.com/router/public/toolchain/netbox-ppc/toolchain-ppc-4.8-linaro-x86_64.tar.bz2
mkdir /opt/toolchain
tar -xvf toolchain-ppc-4.8-linaro-x86_64.tar.bz2 -C /opt/toolchain
export PATH=$PATH:/opt/toolchain/bin
</code>
Donwload curl: ->https://curl.haxx.se/download.html
<code bash>
tar –xvf curl-7.52.1.tar.gz
cd curl-7.52.1
export PATH=$PATH:/opt/toolchain/bin
export STAGING_DIR=/opt/toolchain
export CPPFLAGS="-I/opt/toolchain/include"
export AR=powerpc-openwrt-linux-ar
export AS=powerpc-openwrt-linux-as
export LD=powerpc-openwrt-linux-ld
export RANLIB=powerpc-openwrt-linux-ranlib
export CC=powerpc-openwrt-linux-gcc
export NM=powerpc-openwrt-linux-nm
./configure --target=powerpc-openwrt-linux --host=powerpc-openwrt-linux --disable-nls --disable-debug --disable-ares --enable-shared --enable-static --disable-manual --without-ca-bundle --without-nss --without-libmetalink --without-librtmp --enable-ipv6 --without-axtls --without-cyassl
make