Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 한빛미디어
- 시각화
- Blog
- Visualization
- Python
- 서평단
- tensorflow
- Linux
- 파이썬
- 통계학
- 파이썬 시각화
- Ga
- 한빛미디어서평단
- 월간결산
- matplotlib
- 딥러닝
- 리눅스
- MATLAB
- Pandas
- 독후감
- python visualization
- 텐서플로
- 매틀랩
- MySQL
- Google Analytics
- Tistory
- 서평
- 티스토리
- SQL
- 블로그
Archives
- Today
- Total
pbj0812의 코딩 일기
[fortran] mac에 fortran 설치 및 테스트 본문
0. 목표
- mac OS에 fortran 설치 및 테스트
1. 설치
- gfortran 설치
brew cask install gfortran

2. 테스트
1) 코드 작성
- test.f90
program hello
implicit none
write(*,*) 'Hello world!'
end program hello
2) compile
- a.out 생성
gfortran test.f90

3) a.out 실행
- 에러발생
./a.out

3. 에러 잡기
1) 원인 판단
- 위의 libgfortran.3.dylib 파일은 /anaconda3/bin/libgfortran.3.dylib 에 존재
=> 경로 설정이 잘못되어 에러가 발생할 가능성 존재
2) 해결방안
- ln 을 통해 하드링크를 걸어줌
- 뒤이어 발생하는 libquadmath.0.dylib 에러도 같은 방법으로 해결
ln /anaconda3/bin/libgfortran.3.dylib /usr/local/lib/libgfortran.3.dylib
3) 결과

4. 참고
- 스택오버플로우