building guiqwt under ubuntu:fortran issue

90 views
Skip to first unread message

jean-patrick

unread,
Mar 30, 2011, 5:24:08 AM3/30/11
to guidata/guiqwt
I try the following command to build guiqwt:
sudo python setup.py --fcompiler=gfortran install
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help

error: option --fcompiler not recognized

gfortran is installed. What command should I use to build guiqwt?

Regards
Jean-Patrick
http://dip4fish.blogspot.com/

Carlos Pascual

unread,
Mar 30, 2011, 1:15:26 PM3/30/11
to guidata...@googlegroups.com
The last version that I installed was 2.0.8 (on a ubuntu 10.10)

**As far as I remember** I just used "setup.py install --user" (without -
fcompiler) and it autodetected gfortran...

I hope that helps

--
+----------------------------------------------------+
Carlos Pascual Izarra
Scientific Software Coordinator
Computing Division
Cells / Alba Synchrotron [http:/www.cells.es]
Carretera BP 1413 de Cerdanyola-Sant Cugat, Km. 3.3
E-08290 Cerdanyola del Valles (Barcelona), Spain
E-mail: cpas...@cells.es
Phone: +34 93 592 4428
+----------------------------------------------------+

jean-patrick

unread,
Mar 30, 2011, 3:31:03 PM3/30/11
to guidata/guiqwt
sudo python setup.py install --user
[sudo] password for claire:
running install
running build
running build_py
running build_ext
running build_src
building extension "guiqwt._ext" sources
f2py options: []
adding 'build/src.linux-i686-2.6/fortranobject.c' to sources.
adding 'build/src.linux-i686-2.6' to include_dirs.
building extension "guiqwt._mandel" sources
f2py options: []
adding 'build/src.linux-i686-2.6/fortranobject.c' to sources.
adding 'build/src.linux-i686-2.6' to include_dirs.
adding 'build/src.linux-i686-2.6/guiqwt/_mandel-f2pywrappers2.f90'
to sources.
building extension "guiqwt._scaler" sources
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize GnuFCompiler
Could not locate executable g77
Could not locate executable f77
customize IntelFCompiler
Could not locate executable ifort
Could not locate executable ifc
customize LaheyFCompiler
Could not locate executable lf95
customize PGroupFCompiler
Could not locate executable pgf90
Could not locate executable pgf77
customize AbsoftFCompiler
Could not locate executable f90
customize NAGFCompiler
Could not locate executable f95
customize VastFCompiler
customize GnuFCompiler
customize CompaqFCompiler
Could not locate executable fort
customize IntelItaniumFCompiler
Could not locate executable efort
Could not locate executable efc
customize IntelEM64TFCompiler
customize Gnu95FCompiler
Could not locate executable gfortran
customize G95FCompiler
Could not locate executable g95
don't know how to compile Fortran code on platform 'posix'
warning: build_ext: f77_compiler=None is not available.
building 'guiqwt._ext' extension
error: extension 'guiqwt._ext' has Fortran sources but no Fortran
compiler found


and gfortran is installed:

$ whereis gfortran-4.5
gfortran-4: /usr/bin/gfortran-4.5
>  E-mail: cpasc...@cells.es

jean-patrick

unread,
Mar 31, 2011, 2:56:10 AM3/31/11
to guidata/guiqwt
I created a symbolic link called gfortran to usr/bin/gfortran-4.5 and
the compilation work.

Regards
Jean-Patrick

http://dip4fish.blogspot.com/

Claude

unread,
Apr 8, 2011, 4:59:24 AM4/8/11
to guidata/guiqwt
Hi all
This is for guiqwt-2.1.0/guidata-1.3.0

There are some fortran-f90 compiler concerns for buiding guiqwt only:

1-The status of fortran compilers depends on the numpy.disutils
tuning.

2-On Ubuntu Maverick amd64 , all is compiling out of the box.

3-On RH5 amd64 , I succeded with :

python setup.py build_ext --fcompiler=gnu95 build

There are lot of warnings buildind doc :
...........
running build_doc
Running Sphinx v1.0.7
loading pickled environment... done
building [html]: targets for 0 source files that are out of date
updating environment: 0 added, 1 changed, 0 removed
Module 'guiqwt.image': missing fortran or C extension
.........

I guess there is no need for fortran for docs ...

4- Options for fcompiler are different for build and build_ext.

Hope this helps

Claude
> > Jean-Patrickhttp://dip4fish.blogspot.com/1-1-

Pierre Raybaut

unread,
Apr 11, 2011, 3:51:54 AM4/11/11
to guidata/guiqwt
Thanks Claude for the feedback.

I'll include this in the next bugfix release README.

The "Module 'guiqwt.image': missing fortran or C extension" warning
appearing when building doc has been handled in the development
version and guiqwt v2.1.1 (to be released soon) will include the
bugfix.

-Pierre

Claude a écrit :

ml...@cornell.edu

unread,
Oct 24, 2014, 4:59:26 PM10/24/14
to guidata...@googlegroups.com
This may be a closed topic, but I am uncertain how to proceed with this error.  I am attempting to install guiqwt-2.3.1 on my Ubuntu machine and whenever I run "sudo python setup.py install" it works fine, but whenever I want to use it to install another program it says that "Module 'guiqwt.image': missing C extension" and it tells me that module histogram2d cannot be found.  How should I proceed?

Matt Lewis
Reply all
Reply to author
Forward
0 new messages