Difficulty installing Ipopt

I want to install Ipopt package but when I run Pkg.build("Ipopt") , it throws the following error.

/opt/JuliaPro/JuliaPro-0.5.2.2/JuliaPro/pkgs-0.5.2.2/v0.5/Ipopt/deps/src/Ipopt-3.12.1/Ipopt/src/Interfaces/.libs/libipopt.so: undefined reference to `dgetrf2_'
/opt/JuliaPro/JuliaPro-0.5.2.2/JuliaPro/pkgs-0.5.2.2/v0.5/Ipopt/deps/src/Ipopt-3.12.1/Ipopt/src/Interfaces/.libs/libipopt.so: undefined reference to `dpotrf2_'
collect2: error: ld returned 1 exit status
make[3]: *** [ipopt] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

Please help me, I need it urgently.