LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-18-2012, 05:46 AM   #1
Mohammed Zia
LQ Newbie
 
Registered: Jul 2012
Posts: 6

Rep: Reputation: Disabled
Regarding: Changing complier from pgf90 to gfortran


Hello,
I am trying to install spherepack3.2 package. During installation I got "/bin/sh: 1: pgf90: not found" error. From internet I found that the package is trying to use pgf90 compiler but my ubuntu_v12.04 has gfortan complier. It was suggested to change the FORT variable from pgf90 to gfortran in makefile or build.bash. Kindly guide me know how to do this. Thanks a ton.

Cheers!

Zia
 
Old 08-18-2012, 06:23 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Edit 'make.inc' to look like this ( The first 20 lines ) :
Code:
LIB=../lib/libspherepack.a

UNAMES := $(shell uname -s)

ifeq ($(UNAMES),Linux)

  PGI := $(shell gfortran 2>&1)

  ifeq ($(PGI),pgf90-Warning-No files to process)

    F90 := pgf90 -module ../lib -I../lib
    CPP := pgf90 -E

  else

    F90 := gfortran -DG95 -g -L=../lib -I../lib 
    CPP := gfortran -E -DG95

  endif
... Result : spherepack3.2/lib/libspherepack.a

.

Last edited by knudfl; 08-18-2012 at 06:34 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
C complier rehan999 Linux - Software 6 10-27-2007 11:26 PM
any c# complier for linux?? sorno Linux - Newbie 8 09-11-2005 02:54 PM
gfortran and pgf90 peeInMyPantz Programming 1 08-08-2005 04:54 AM
Cobol Complier JROCK1980 Programming 1 06-11-2004 05:23 AM
c complier detteng General 4 11-10-2003 07:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration