f77: command not found

396 views
Skip to first unread message

이은비

unread,
Dec 21, 2021, 7:30:00 AM12/21/21
to rMATS User Group
Hello all,

I'm trying to run rmats_turbo_v4_1_2 in Amazon EC2, but error keeps popping up.
I already downloaded dependencies and also checked versions.

But when I running ./build_rmats, the following error pops up:

make[2]: Entering directory `/home/ec2-user/rmats_turbo_v4_1_2/rMATS_C/lbfgs_scipy'
f77 -c -O2  -c -o lbfgsb.o lbfgsb.f
make[2]: f77: Command not found
make[2]: *** [lbfgsb.o] Error 127
make[2]: Leaving directory `/home/ec2-user/rmats_turbo_v4_1_2/rMATS_C/lbfgs_scipy'
make[1]: *** [lbfgs_scipy/lbfgsb.o] Error 2
make[1]: Leaving directory `/home/ec2-user/rmats_turbo_v4_1_2/rMATS_C'
make: *** [build] Error 2

To solve this error, I followed the solution to the same question posted before.
I changed the /path/to/gfortran in setup_environment.sh.
(I found /path/to/gfortran using "whereis gfortran" code.)

** setup_environment.sh
#!/bin/bash

function load_module() {
  local MODULE_NAME="$1"
  module load "${MODULE_NAME}" > /dev/null 2>&1
  if [[ "$?" -ne 0 ]]; then
    echo "failed to: module load ${MODULE_NAME}" 1>&2
    return 1
  fi
}

function load_modules() {
  module purge || return 1
  load_module cmake/3.15.4 || return 1
  load_module GCC/5.4.0-2.26 || return 1
  load_module gsl/2.5 || return 1
}

function main() {
  # For using conda
  source "${HOME}/.bashrc" || return 1

  # Uncomment to use environment modules
  # load_modules || return 1

  # Uncomment to set compiler paths
  # export FC=/usr/bin/gfortran || return 1
  # export CC=/usr/bin/gcc || return 1
  # export CXX=/usr/bin/g++ || return 1
}

main "$@"


but, it showed same error.
How can I solve this error?

Thanks,
Eunbi


kutsc...@gmail.com

unread,
Dec 21, 2021, 8:33:39 AM12/21/21
to rMATS User Group
It looks like you edited the line to have "export FC=/usr/bin/gfortran" but you didn't uncomment the line (remove the '#')

Eric

LEE EUNBI

unread,
Dec 21, 2021, 11:33:37 AM12/21/21
to rMATS User Group
Thanks to your quick reply.
I solved the problem thanks to your solution.

Eunbi
2021년 12월 21일 화요일 오후 10시 33분 39초 UTC+9에 kutsc...@gmail.com님이 작성:
Reply all
Reply to author
Forward
0 new messages