LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-20-2013, 01:14 AM   #16
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651

Are you trying to build a "static" version ?

if so then you will need to build zlib.a and use all NON dynamically linked libs
 
Old 07-24-2013, 06:21 AM   #17
fereshteh
LQ Newbie
 
Registered: Jul 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
dear my problem have not been sollved. i used
[code]
yum install zlib
yum install zlib-devel
then with regard your answer that configure find zlib for installing hdf5 i use
[code]
[fereshteh@localhost ~]$ cd /home/fereshteh/hdf5-1.8.9
[fereshteh@localhost hdf5-1.8.9]$ ./configure --prefix=/home/fereshteh/HDF5
./configure: line 2818: config.log: Permission denied
./configure: line 2828: config.log: Permission denied
but as you can see those errors arised. what can i do now?
thanks
 
Old 07-24-2013, 06:23 AM   #18
fereshteh
LQ Newbie
 
Registered: Jul 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
dont solved

dear my problem have not been sollved. i used
[code]
yum install zlib
yum install zlib-devel
then with regard your answer that configure find zlib for installing hdf5 i use
[code]
[fereshteh@localhost ~]$ cd /home/fereshteh/hdf5-1.8.9
[fereshteh@localhost hdf5-1.8.9]$ ./configure --prefix=/home/fereshteh/HDF5
./configure: line 2818: config.log: Permission denied
./configure: line 2828: config.log: Permission denied
but as you can see those errors arised. what can i do now?
also i like to say that i should not install hdf5 and netcdf with yum because my model (roms) need some setting that i should set their include and bin directories in different places. please help me without using yum
thanks

Last edited by fereshteh; 07-24-2013 at 06:26 AM.
 
Old 07-24-2013, 01:56 PM   #19
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
and i need guide for puting zlib path in --withzlib=.... part
there is no need for that line
autotools will auto find it it is is installed ( and it is already installed )

Quote:
./configure: line 2828: config.log: Permission denied
it looks like at some point you ran "configure" as ROOT
that is not a good idea , it causes all kinds of problems

delete the folder ( you might need to be root to do it )
then re extract the tar ball

Also you have not answerer WHY you are trying to build from source a OLD VERSION
1.8.9 was released in May of 2012
the current 1.8.11 was released thin may (2013-05-08)

and not the current version

also WHY are you truing to build it ???

it should be in the fedora repos
Code:
su -
yum search netcdf 
----- it should be listed ----
yum install netcdf netcdf-devel
and be done with it

Quote:
because my model (roms) need some setting that i should set their include and bin directories in different places
so from this
" --prefix=/home/fereshteh/HDF5 "
you MUST set the "bin" folder to
"/home/fereshteh/HDF5/bin"
and the include folder to
"/home/fereshteh/HDF5/include"

that is very "odd"

the software default is the Debian "/usr/local "
and fedora uses "/usr" instead

so just where must you ? place? these bin and include folders

fedora's default is
/usr/bin
/usr/include

Last edited by John VV; 07-24-2013 at 02:15 PM.
 
Old 07-27-2013, 02:38 AM   #20
fereshteh
LQ Newbie
 
Registered: Jul 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
cc1

finally i use yum for installating zlib, hdf5 and netcdf, their versions are 1.2.6, 1.8.7 and 4.1.3 respectively. i know That netcdf include directory have to contains netcdf.mod, typesizes.mod , ncvalues.h, netcdf,h etc. But with yum installation first two files are set in /usr/lib/gfortran/modules path not in /usr/include, why ?in roms model i have to set NETCDF_INDIR that should set to one place for example /usr/include but as you can see 2 files are in /usr/lib/gfortran/modules? for this what is your recommendation. can i copy/paste those file to /usr/include?
Also when i compile roms with ./build.bash command this error arise
[code]
rm -f -r core *.ipo /home/fereshteh/projects/upwelling9/Build /home/fereshteh/make_macros.mk
cpp: error trying to exec 'cc1': execvp: No such file or directory
[code]

i know that is about gcc compiler . When i type
[code]
[fereshteh@localhost upwelling9]$ whereis cc1
cc1:
nothing replied.
Would you please tell me how i can fix this error.
Cheers
fereshte

Last edited by fereshteh; 07-27-2013 at 03:18 AM.
 
Old 07-27-2013, 05:42 PM   #21
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
usr/lib/gfortran/modules

is the correct install location
the current autotools will find the modules if needed
ldconf and pkgconfig will find them

the instructions you might be fallowing are likely for the OLD folder and file system layout from 8 to 10 years ago for the older gcc tools .

/usr/include
is for the header files ( *.h )
these are in the devel rpms

you really do not want to "copy / past" the
usr/lib/gfortran/modules
into
/usr/include


edit the makefile's in the project and NOT the operating system
make_macros.mk
m4 macros , a PHD theses can be done in trying to explain these

but the upshot is the current macros used in the gcc 4 version is WAY better than the old versions in the old gcc3 tools

"build.bash"
edit the build files
makefile projects REQUIRE you to manually edit the build files for your system

Last edited by John VV; 07-27-2013 at 05:45 PM.
 
Old 07-29-2013, 04:31 AM   #22
fereshteh
LQ Newbie
 
Registered: Jul 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
cc1

thanks so mush for your answer.

for resolving my previous error (cpp: error trying to exec 'cc1': execvp: No such file or directory), i think that i should install another version of gcc (are you agree with me?).my current gcc version is 4.6.2 20111027(red hat 4.6.2-1)that have installed in my system by
yum install gcc
now would you please tell me how i can insall new version on fedora 16?
and after installing i should changed default system setup to use new version of gcc?
thanks in advance

Last edited by fereshteh; 07-29-2013 at 04:36 AM.
 
Old 07-29-2013, 12:26 PM   #23
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
with out seeing the makefile for this makefile project

Quote:
/home/fereshteh/projects/upwelling9
where did you get the program "upwelling9"that you are trying to build

-- i am assumming it is some project related to netcdf
a search on that site shows this
http://www.unidata.ucar.edu/googlere...df%2Findex.jsp


cc1 is likely a alias

for "makefile" projects you have to edit the makefile for YOUR system
the autotools are not used

this "make_macros.mk" is likely a hand wrote file


how exactly did you install the whole gcc tool chain

the way recommended by fedora has been to install the group
Code:
su -
yum groupinstall "Development Tools"
as to "installing a different gcc"

fedora dose not really support that , there is the old gcc34 -compat
a compatibility version

but for say gcc 4.1

you must build that tool chain from source and take extreme care NOT to replace the currently installed
gcc is designed to be installed "side by side" with other versions

but take a month ( 30 days) and read up and study the subject first





you might want to talk to your Prof. in this class about building this software
or fallow the "contact us " link
http://www.unidata.ucar.edu/about/index.html#contact

the documentation i can find is for the CURRENT netcdf 4.3
http://www.unidata.ucar.edu/software.../building.html
and is NOT for the old 4.2 you are using
-- it might not apply to the old 4.2 version
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gfortran compiler sujatabhattacharyya Linux - Newbie 1 07-12-2012 11:29 AM
run gcc gfortran Blink0 Slackware 9 04-19-2012 08:56 PM
problem in installing gcc-gfortran 4.3.3 Kilam orez Linux - Newbie 12 06-29-2011 01:20 AM
help gfortran mperez Programming 2 12-16-2007 12:50 PM
g77 in gcc 4.1.0 not found only gfortran fortran 95 compiler! I need fortran 77. TheBrick Linux - Software 3 07-04-2007 06:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:33 PM.

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