Megacmd

about image

How to Install MEGAcmd on Gentoo Linux (from source)

hahnavi November 30, 2024

To build MEGAcmd on Gentoo Linux, we need to apply a patch similar to that used on Arch Linux.

Download the source of MEGAcmd, MEGA SDK, and the patch:

curl -OL "https://github.com/meganz/MEGAcmd/archive/1.7.0_Linux.tar.gz"
curl -OL "https://github.com/meganz/sdk/archive/e448c09e73a4496329f46e538f1f20143b618ed1.tar.gz"
curl -OL "https://aur.archlinux.org/cgit/aur.git/plain/fix-ffmpeg-compile.patch?h=megacmd"

Extract the sources:

tar xf 1.7.0_Linux.tar.gz
tar xf e448c09e73a4496329f46e538f1f20143b618ed1.tar.gz

Navigate to the MEGAcmd directory:

cd MEGAcmd-1.7.0_Linux

Create a symlink for MEGA SDK:

rm -r sdk
ln -s ../sdk-e448c09e73a4496329f46e538f1f20143b618ed1 sdk

Apply the patch:

patch -Np1 -d sdk < ../fix-ffmpeg-compile.patch

Build MEGAcmd:

...