According to the Megatools official documentation page on github, you’ll need the following tools for using Megatools on Fedora (and git of course):
yum -y install gcc make glib2-devel libcurl-devel openssl-devel gmp-devel tar automake autoconf libtool wget -y
wget https://megatools.megous.com/builds/megatools-1.9.97.tar.gz
tar -xzvf megatools*.tar.gz
cd megatools*
./configure
make
make install
megadl 'MEGA URL'
Note the ‘single quotes’ around the URL.