Discussion:
[guidata/guiqwt] building guiqwt under ubuntu:fortran issue
jean-patrick
2011-03-30 09:24:08 UTC
Permalink
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
2011-03-30 17:15:26 UTC
Permalink
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
Post by jean-patrick
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 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: cpascual-***@public.gmane.org
Phone: +34 93 592 4428
+----------------------------------------------------+
jean-patrick
2011-03-30 19:31:03 UTC
Permalink
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
Post by Carlos Pascual
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
Post by jean-patrick
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 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
 Phone: +34 93 592 4428
+----------------------------------------------------+
jean-patrick
2011-03-31 06:56:10 UTC
Permalink
I created a symbolic link called gfortran to usr/bin/gfortran-4.5 and
the compilation work.

Regards
Jean-Patrick

http://dip4fish.blogspot.com/
Post by jean-patrick
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-Patrickhttp://dip4fish.blogspot.com/
Claude
2011-04-08 08:59:24 UTC
Permalink
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
Post by jean-patrick
I created a symbolic link called gfortran to usr/bin/gfortran-4.5 and
the compilation work.
Regards
Jean-Patrick
http://dip4fish.blogspot.com/
Post by jean-patrick
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-Patrickhttp://dip4fish.blogspot.com/1-1-
Pierre Raybaut
2011-04-11 07:51:54 UTC
Permalink
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
Post by Claude
Hi all
This is for guiqwt-2.1.0/guidata-1.3.0
1-The status of fortran compilers depends on the numpy.disutils
tuning.
2-On Ubuntu Maverick amd64 , all is compiling out of the box.
python setup.py build_ext --fcompiler=gnu95 build
...........
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
Post by jean-patrick
I created a symbolic link called gfortran to usr/bin/gfortran-4.5 and
the compilation work.
Regards
Jean-Patrick
http://dip4fish.blogspot.com/
Post by jean-patrick
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-Patrickhttp://dip4fish.blogspot.com/1-1-
m***@cornell.edu
2014-10-24 20:59:26 UTC
Permalink
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
Post by Pierre Raybaut
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
Post by Claude
Hi all
This is for guiqwt-2.1.0/guidata-1.3.0
1-The status of fortran compilers depends on the numpy.disutils
tuning.
2-On Ubuntu Maverick amd64 , all is compiling out of the box.
python setup.py build_ext --fcompiler=gnu95 build
...........
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
Post by jean-patrick
I created a symbolic link called gfortran to usr/bin/gfortran-4.5 and
the compilation work.
Regards
Jean-Patrick
http://dip4fish.blogspot.com/
Post by jean-patrick
sudo python setup.py --fcompiler=gfortran install
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts]
...]
Post by Claude
Post by jean-patrick
Post by jean-patrick
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-Patrickhttp://dip4fish.blogspot.com/1-1-
--
You received this message because you are subscribed to the Google Groups "guidata/guiqwt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guidata_guiqwt+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...