CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation

OF 1.7.1 on Fedora 13

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 4, 2010, 21:21
Default OF 1.7.1 on Fedora 13
  #1
Member
 
Tony
Join Date: Jun 2010
Posts: 54
Rep Power: 7
tonyuprm is on a distinguished road
Hi,

Im trying to install OpenFOAM on a Fedora 13 machine but the installer stops after running for 2 hours with the following error:

make: Target `application' not remade because of errors.

Attached is the log file.

make.log.tar.gz

Thanks
tonyuprm is offline   Reply With Quote

Old   November 5, 2010, 11:12
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,503
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Tony,

The solution is pretty simple: run Allwmake again

There is a bug in Allwmake in the ThirdParty folder, which doesn't create the necessary folder for libscotch to be copied to. But the second time it's executed, the folder already exists from the previous run.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   November 6, 2010, 02:21
Default Error in making the target 'application'
  #3
New Member
 
Join Date: Nov 2010
Posts: 11
Rep Power: 6
Achin is on a distinguished road
Hi

I had the same problem i.e

make: *** [thermophysical] Error 2
make: Target `application' not remade because of errors.

This continued to occur even on 3rd run of ./Allwmake. I am trying to install OF in Fedora 13. Kindly Help.
Achin is offline   Reply With Quote

Old   November 6, 2010, 05:58
Default
  #4
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 14
l_r_mcglashan will become famous soon enough
Let's see, in your make log you have:

/usr/bin/ld: cannot find -liberty

Can you 'locate libiberty'?

I think you need to install binutils. If you're using fedora then 'yum install binutils-devel' as root.

I just installed Fedora 14, I'll be installing OF on that when I have time.
__________________
Laurence R. McGlashan :: Website
l_r_mcglashan is offline   Reply With Quote

Old   November 6, 2010, 11:52
Default
  #5
New Member
 
Join Date: Nov 2010
Posts: 11
Rep Power: 6
Achin is on a distinguished road
Hi Laurance

I installed binutils also but still application couldn't be made.

Abhinav
Achin is offline   Reply With Quote

Old   November 6, 2010, 16:06
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,503
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Abhinav,

Could you post the new make.log file?

Just in case you don't know what I'm talking about, run Allwmake like so:
Code:
./Allwmake > make.log 2>&1
tar -czf make.log.tar.gz make.log
Then attach the file "make.log.tar.gz" to your next post.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   November 6, 2010, 16:20
Default
  #7
New Member
 
Join Date: Nov 2010
Posts: 11
Rep Power: 6
Achin is on a distinguished road
Hi Bruno

Here is the log file.

Abhinav
Attached Files
File Type: gz make.log.tar.gz (22.0 KB, 6 views)
Achin is offline   Reply With Quote

Old   November 6, 2010, 16:26
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,503
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Abhinav,

You don't even gcc nor g++ installed? Here are the packages you need to install in Fedora before you start building OpenFOAM:
Quote:
Originally Posted by http://www.idurun.com/?p=544
Before compiling the packages, you must prepare some necessary packages on your system:
  • binutils-static # it provides libiberty.a and others
  • python-devel # if you want the python support in paraview
  • qt-devel # I suppose you like it. Yes, it provides qmake-qt4
  • cmake # it is mandatory for compiling paraview
  • flex
Please use yum to install them:
Code:
sudo yum install -y binutils-static python-devel qt-devel cmake flex
Edit: I reviewed the file and noticed you are installing OpenFOAM 1.7.1 (in Fedora 13, I guess). You'll need to do a little modification before starting to build it:
Quote:
Originally Posted by http://www.openfoam.com/mantisbt/view.php?id=15
In $WM_DIR/rules/linux64Gcc/c++, change LINKEXE to this:
Code:
LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed
Edit2: Sorry, forgot to mention that you also need to install gcc and g++ I thought that blog I quoted had the whole list Here is another yum command line form an old post of mine for Fedora 12:
Quote:
Originally Posted by wyldckat View Post
Code:
yum install gcc gcc-c++ binutils-devel flex git-core wget cmake qt4-devel python-devel readline-devel bison
Good luck!
Bruno

Last edited by wyldckat; November 6, 2010 at 16:38. Reason: see "Edit:" and "Edit2:"
wyldckat is offline   Reply With Quote

Old   November 6, 2010, 16:36
Default
  #9
New Member
 
Join Date: Nov 2010
Posts: 11
Rep Power: 6
Achin is on a distinguished road
Hi Bruno

I checked and found that I dont have g++ installed although gcc is there and working. Any ways I'll install other packages first. Should I do "yum install gcc-c++".

Abhinav
Achin is offline   Reply With Quote

Old   November 6, 2010, 16:41
Default
  #10
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,503
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Abhinav,

Yep review my previous post... I've been editing it... twice I've had to review it... this is really the end of my week, I'm just running on fumes

A final note (or so I hope ): check if you have the file /lib/gcc. If not, run this in superuser/root:
Code:
ln -s `which gcc` /lib/gcc
Best regards,
Bruno

Last edited by wyldckat; November 6, 2010 at 16:41. Reason: which gcc ...
wyldckat is offline   Reply With Quote

Old   November 6, 2010, 18:08
Default
  #11
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 14
l_r_mcglashan will become famous soon enough
Wow, no g++? Welcome to the wonderful world of Fedora!
__________________
Laurence R. McGlashan :: Website
l_r_mcglashan is offline   Reply With Quote

Old   November 7, 2010, 14:14
Default
  #12
New Member
 
VNPenguin
Join Date: Apr 2010
Posts: 19
Rep Power: 7
vnpenguin is on a distinguished road
Quote:
Originally Posted by l_r_mcglashan View Post
Wow, no g++? Welcome to the wonderful world of Fedora!
No problem. Just "yum install gcc\*"
vnpenguin is offline   Reply With Quote

Old   November 9, 2010, 01:08
Default
  #13
Member
 
Tony
Join Date: Jun 2010
Posts: 54
Rep Power: 7
tonyuprm is on a distinguished road
Thanks,

I tried running the Allwmake script again but it didnt work. I installed some dependencies which i was missing and changed the LINKEXE line that Bruno suggested. Now the installation is working fine.

Thanks,

Tony
tonyuprm is offline   Reply With Quote

Old   November 11, 2010, 11:59
Thumbs up
  #14
New Member
 
VNPenguin
Join Date: Apr 2010
Posts: 19
Rep Power: 7
vnpenguin is on a distinguished road
With the patch of $WM_DIR/rules/linux64Gcc/c++ suggested by Bruno, I can build OpenFOAM 1.7.1 on Fedora 14 too
vnpenguin is offline   Reply With Quote

Old   November 12, 2010, 13:44
Default
  #15
New Member
 
Join Date: Nov 2010
Posts: 11
Rep Power: 6
Achin is on a distinguished road
Here is a log file.
I installed the all the dependencies.
I changed the LINEXE file as
LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed
I tried installing as root since I observed "Permission Denied" for some files in log file.
But still there is the problem.
any ideas?
I am trying to install OpenFoam 1.7 on Fedora 13.


Sorry no logfile could be uploaded as it's size was more than allowed.
Abhinav
Achin is offline   Reply With Quote

Old   November 12, 2010, 14:03
Default
  #16
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,503
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Abhinav,

Compress the log like this:
Code:
tar -czf make_log.tar.gz make.log
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   November 12, 2010, 15:28
Default
  #17
New Member
 
Join Date: Nov 2010
Posts: 11
Rep Power: 6
Achin is on a distinguished road
Hi Bruno

It was the compressed file I was talking about which couln't be uploaded as it was 126 kb while the allowed size is of 97kb for one attachment. Any way I made the whole log in two parts and now I have attached two compressed files. I was trying to install as root.

Regards
Abhinav
Attached Files
File Type: gz make1.log.tar.gz (63.2 KB, 3 views)
File Type: gz make2.log.tar.gz (64.0 KB, 2 views)
Achin is offline   Reply With Quote

Old   November 12, 2010, 18:36
Default
  #18
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,503
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Abhinav,

Mmm, this week was longer than I thought... I didn't even remember about telling you how to compress the file in a previous post

OK, the only thing that pops into my head is this: you have Fedora i686 and not x86_64, therefore the correct file to change would be "$WM_DIR/rules/linuxGcc/c++". But to be really sure of which rule version you are using, try this:
Code:
echo $WM_DIR/rules/$WM_ARCH$WM_COMPILER/c++
Because the errors you are getting are associated to that LINKEXE line, namely the missing two options for Fedora!

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   November 13, 2010, 07:26
Default
  #19
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 14
l_r_mcglashan will become famous soon enough
Also, why not use the Git repository. It's up to date with all those fixes and will compile on Fedora 13/14 no problem.
__________________
Laurence R. McGlashan :: Website
l_r_mcglashan is offline   Reply With Quote

Old   November 13, 2010, 10:26
Thumbs up
  #20
New Member
 
VNPenguin
Join Date: Apr 2010
Posts: 19
Rep Power: 7
vnpenguin is on a distinguished road
Quote:
Originally Posted by l_r_mcglashan View Post
Also, why not use the Git repository. It's up to date with all those fixes and will compile on Fedora 13/14 no problem.
Yes, you're right. With Git repo I just build no problem on Fedora 14

Thanks,
vnpenguin is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error compiling 1.6.x on Fedora 12 vnpenguin OpenFOAM Installation 7 July 24, 2012 14:52
OpenCFD release OpenFOAMŪ version 1.7.1 opencfd OpenFOAM Announcements from ESI-OpenCFD 0 August 26, 2010 11:40
Fedora 10 OpenFOAM15 philippose OpenFOAM Installation 7 February 18, 2009 05:37
STAR-CD 3.268in Fedora 8 Thomas Stockheim CD-adapco 3 April 28, 2008 03:43
FEDORA CORE and PARALLEL processing Tuks CFX 2 August 20, 2005 11:05


All times are GMT -4. The time now is 20:42.