CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Compile error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 7, 2022, 23:21
Default Compile error
  #1
Member
 
Ching Liu
Join Date: Sep 2017
Posts: 52
Rep Power: 9
qingqingliu is on a distinguished road
I am a beginner in OpenFOAM programming. To learn how to compile solvers, I did a simple test, but met an error.

I am using OpenFOAM v2012 installed on Windows 10. In the solver folders, there are many solvers. I copied the compressibleInterFoam solver and paste to the same folder, and renamed it compressibleInterFoam1. When I compile the compressibleInterFoam1, I have an error as follows:

/opt/OpenFOAM/OpenFOAM-v2012/wmake/wmake: line 637: make: command not found
/opt/OpenFOAM/OpenFOAM-v2012/wmake/wmake: line 640: make: command not found
wmake error: file '/opt/OpenFOAM/OpenFOAM-v2012/build/linux64Gcc63DPInt32Opt/applications/solvers/multiphase/compressibleInterFoam1/sourceFiles' could not be created in /opt/OpenFOAM/OpenFOAM-v2012/applications/solvers/multiphase/compressibleInterFoam1

Anyone knows what is the reason and how to fix it?
qingqingliu is offline   Reply With Quote

Old   October 8, 2022, 09:01
Default
  #2
Member
 
Ashutosh
Join Date: Jul 2021
Location: India
Posts: 76
Rep Power: 5
night-hawk is on a distinguished road
GNU make is not installed.
night-hawk is offline   Reply With Quote

Old   October 8, 2022, 14:33
Default
  #3
Member
 
Ching Liu
Join Date: Sep 2017
Posts: 52
Rep Power: 9
qingqingliu is on a distinguished road
Quote:
Originally Posted by night-hawk View Post
GNU make is not installed.
Thanks. When I install GNU make using the command: apt install make. there is an error:
apt: /opt/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /lib/x86_64-linux-gnu/libapt-pkg.so.6.0)

It shows that GLIBCXX_3.4.26' not found. Do you know what I need to do next?
qingqingliu is offline   Reply With Quote

Old   October 9, 2022, 02:09
Default
  #4
Member
 
Ashutosh
Join Date: Jul 2021
Location: India
Posts: 76
Rep Power: 5
night-hawk is on a distinguished road
libstdc++6 is not installed. You also need install build-essential.

night-hawk is offline   Reply With Quote

Reply

Tags
compile error, openfoam


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 14:21
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 08:24
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 21:50
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


All times are GMT -4. The time now is 13:16.