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

lib directory does not exists

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 11, 2012, 04:17
Default lib directory does not exists
  #1
New Member
 
deok-kyu choi
Join Date: Feb 2012
Location: Rep. of Korea
Posts: 12
Rep Power: 14
ggoggodak85 is on a distinguished road
I'm trying to compile OF-2.1.x for windows.

I got a build-script from https://gist.github.com/2352720

When I follow the build-script, I'm trouble at Line 145.
Line 145 : export FOAM_LIB=$WM_PROJECT_DIR/lib

I can't find "OpenFOAM/OpenFOAM-2-1.x/lib"

Is there anything to do more to make lib directory?

In script, No jobs to make directory.
I hope someone will help me.

Best regards,
ggoggodak85 is offline   Reply With Quote

Old   June 13, 2012, 21:38
Default
  #2
New Member
 
deok-kyu choi
Join Date: Feb 2012
Location: Rep. of Korea
Posts: 12
Rep Power: 14
ggoggodak85 is on a distinguished road
Nobody has any idea?
ggoggodak85 is offline   Reply With Quote

Old   June 14, 2012, 15:44
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi ggoggodak85,

It's not as much of a lack of ideas, the main problem is the lack of time

And I'm not sure I understand the problem. The folder you seem to be looking for should appear if you run this command:
Code:
ls -l $HOME/OpenFOAM/OpenFOAM-2.1.x/lib
If not, try this command to confirm if the parent folder exists:
Code:
ls -l $HOME/OpenFOAM/OpenFOAM-2.1.x/
Additionally, by what I can see from the line #76, you are meant to run this script from within the folder "$HOME/OpenFOAM".


If this doesn't help, then please describe in more detail what is the problem!?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   June 15, 2012, 03:21
Default
  #4
New Member
 
deok-kyu choi
Join Date: Feb 2012
Location: Rep. of Korea
Posts: 12
Rep Power: 14
ggoggodak85 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi ggoggodak85,

It's not as much of a lack of ideas, the main problem is the lack of time

And I'm not sure I understand the problem. The folder you seem to be looking for should appear if you run this command:
Code:
ls -l $HOME/OpenFOAM/OpenFOAM-2.1.x/lib
If not, try this command to confirm if the parent folder exists:
Code:
ls -l $HOME/OpenFOAM/OpenFOAM-2.1.x/
Additionally, by what I can see from the line #76, you are meant to run this script from within the folder "$HOME/OpenFOAM".


If this doesn't help, then please describe in more detail what is the problem!?

Best regards,
Bruno
Thx for your great help.
yes, I already work within $HOME/OpenFOAM/OpenFOAM-2.1.x

and when I ran
Code:
ls -l $HOME/OpenFOAM/OpenFOAM-2.1.x/lib
the output in terminal
lrwxrwxrwx 1 choidk choidk 62 2012-06-15 15:29 linux64GccDPOpt -> /home/choidk/OpenFOAM/OpenFOAM-2.1.x/lib/linux64mingw-w64DPOpt
drwxrwxr-x 2 choidk choidk 4096 2012-06-15 15:25 linux64mingw-w64DPOpt

and
Code:
ls -l $HOME/OpenFOAM/OpenFOAM-2.1.x/
choidk@choidk-VirtualBox:~/OpenFOAM/OpenFOAM-2.1.x$ ls -l $HOME/OpenFOAM/OpenFOAM-2.1.x
total 844
-rwxrwxr-x 1 choidk choidk 939 2012-06-15 15:03 Allwmake
-rw-rw-r-- 1 choidk choidk 541359 2012-06-15 15:47 Allwmake.log
drwxrwxr-x 5 choidk choidk 4096 2012-06-13 15:57 applications
drwxrwxr-x 3 choidk choidk 4096 2012-06-13 15:57 bin
-rw-rw-r-- 1 choidk choidk 35647 2012-06-13 15:57 COPYING
drwxrwxr-x 6 choidk choidk 4096 2012-06-13 15:57 doc
drwxrwxr-x 5 choidk choidk 4096 2012-06-15 15:09 etc
drwxrwxr-x 4 choidk choidk 4096 2012-06-15 15:03 extra
drwxrwxr-x 3 choidk choidk 4096 2012-06-15 15:29 lib
-rw-rw-r-- 1 choidk choidk 221422 2012-06-15 15:03 patch.log
drwxrwxr-x 3 choidk choidk 4096 2012-06-15 15:30 platforms
-rw-rw-r-- 1 choidk choidk 6478 2012-06-13 15:57 README.html
-rw-rw-r-- 1 choidk choidk 1590 2012-06-13 15:57 README.org
drwxrwxr-x 33 choidk choidk 4096 2012-06-15 15:03 src
drwxrwxr-x 16 choidk choidk 4096 2012-06-13 15:57 tutorials
drwxrwxr-x 6 choidk choidk 4096 2012-06-15 15:03 wmake

finally I attached my Allwmake.log file compiling OpenFOAM.

Best regards,
Attached Files
File Type: gz Allwmake.log.tar.gz (25.4 KB, 20 views)
ggoggodak85 is offline   Reply With Quote

Old   June 16, 2012, 04:58
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Well, this is the main cause:
Quote:
Code:
UOPwrite.C:29:17: fatal error: mpi.h: No such file or directory
compilation terminated.
You have to figure out how the MS-MPI is meant to be installed!

Good luck!
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   June 20, 2012, 05:20
Default
  #6
New Member
 
deok-kyu choi
Join Date: Feb 2012
Location: Rep. of Korea
Posts: 12
Rep Power: 14
ggoggodak85 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Well, this is the main cause:
You have to figure out how the MS-MPI is meant to be installed!

Good luck!
Bruno
Hi, Bruno!

I almost solved my problem, but there's some problems for compiling.
I think OpenFOAM can't find library files.
Plz give some help.
here is some parts of output for Allwmake.

Regards,


================================================== =============
make: Nothing to be done for `all'.
no ThirdParty sources found - skipping
+ set -e
+ wmakePrintBuild -check
same version as previous build
+ wmakeLnInclude OpenFOAM
+ wmakeLnInclude OSspecific/MSwindows
+ OSspecific/MSwindows/Allwmake
src/Allwmake: 1: OSspecific/MSwindows/Allwmake: Permission denied
+ wmake all utilities
make[1]: Entering directory `/home/choidk/OpenFOAM/OpenFOAM-2.1.x/applications/utilities/mesh'
make[2]: Entering directory `/home/choidk/OpenFOAM/OpenFOAM-2.1.x/applications/utilities/mesh/advanced'
make[3]: Entering directory `/home/choidk/OpenFOAM/OpenFOAM-2.1.x/applications/utilities/mesh/advanced/PDRMesh'
x86_64-w64-mingw32-g++ -m64 -Dlinux64 -DWM_DP -DMSWIN -DLITTLE_ENDIAN -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -O3 -DNDEBUG -DNoRepository -ftemplate-depth-40 -I/home/choidk/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/choidk/OpenFOAM/OpenFOAM-2.1.x/src/dynamicMesh/lnInclude -I/home/choidk/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/choidk/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/choidk/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/MSwindows/lnInclude -Wl,--enable-auto-import,--enable-auto-image-base,--force-exe-suffix,--strip-all Make/linux64mingw-w64DPOpt/PDRMesh.o -L/home/choidk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64mingw-w64DPOpt/lib \
-lmeshTools -ldynamicMesh -lfiniteVolume -lcompressibleRASModels -u compressibleRASModelsLoad -lcompressibleTurbulenceModel -lOpenFOAM -L/home/choidk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64mingw-w64DPOpt/lib/dummy -lPstream -lm -o /home/choidk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64mingw-w64DPOpt/bin/PDRMesh.exe
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lmeshTools
/usr/bin/x86_64-w64-mingw32-ld: cannot find -ldynamicMesh
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lfiniteVolume
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lcompressibleRASModels
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lcompressibleTurbulenceModel
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lOpenFOAM
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lPstream

collect2: ld returned 1 exit status
make[3]: *** [/home/choidk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64mingw-w64DPOpt/bin/PDRMesh.exe] Error 1
make[3]: Leaving directory `/home/choidk/OpenFOAM/OpenFOAM-2.1.x/applications/utilities/mesh/advanced/PDRMesh'
make[2]: *** [PDRMesh] Error 2
ggoggodak85 is offline   Reply With Quote

Old   June 20, 2012, 16:21
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Deok-kyu,

It's very simple - whenever you see something like that:
Quote:
Code:
src/Allwmake: 1: OSspecific/MSwindows/Allwmake: Permission denied
It's either due to one of two reasons:
  1. File not accessible.
  2. Or the file doesn't have execution permissions.
From within the "OpenFOAM-2.1.x" folder, run:
Code:
chmod +x src/OSspecific/MSwindows/Allwmake
Then you can try again!

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   June 20, 2012, 23:24
Default
  #8
New Member
 
deok-kyu choi
Join Date: Feb 2012
Location: Rep. of Korea
Posts: 12
Rep Power: 14
ggoggodak85 is on a distinguished road
Thanks again, Bruno!
It works, Allwmake file has no function to execute.

Some messages posted when Allwmake.
plz see the messages.

+ wmake libso OpenFOAM
SOURCE=db/IOstreams/gzstream/gzstream.C ; x86_64-w64-mingw32-g++ -m64 -Dlinux64 -DWM_DP -DMSWIN -DLITTLE_ENDIAN -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -O3 -DNDEBUG -DNoRepository -ftemplate-depth-40 -IMake/linux64mingw-w64DPOpt -IlnInclude -I. -I/home/choidk/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/choidk/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/MSwindows/lnInclude -c $SOURCE -o Make/linux64mingw-w64DPOpt/gzstream.o
In file included from db/IOstreams/gzstream/gzstream.C:29:0:
db/IOstreams/gzstream/gzstream.h:35:18: fatal error: zlib.h: No such file or directory
compilation terminated.
make: *** [Make/linux64mingw-w64DPOpt/gzstream.o] Error 1

And I have more questions.
1. how can i link library file? (refer to above replies)
e.g.)
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lmeshTools
/usr/bin/x86_64-w64-mingw32-ld: cannot find -ldynamicMesh
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lfiniteVolume
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lcompressibleRASModels
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lcompressibleTurbulenceModel
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lOpenFOAM
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lPstream

2. why this message occur? I don't know why.
run-detectors: unable to find an interpreter for /home/choidk/OpenFOAM/OpenFOAM-2.1.x/wmake/platforms/linux64mingw-w64/wmkdep
ggoggodak85 is offline   Reply With Quote

Old   June 21, 2012, 16:39
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Deok-kyu,

Quote:
Originally Posted by ggoggodak85 View Post
db/IOstreams/gzstream/gzstream.h:35:18: fatal error: zlib.h: No such file or directory
I vaguely remember already telling you about this, which is due to the missing zlib library!

Quote:
Originally Posted by ggoggodak85 View Post
2. why this message occur? I don't know why.
run-detectors: unable to find an interpreter for /home/choidk/OpenFOAM/OpenFOAM-2.1.x/wmake/platforms/linux64mingw-w64/wmkdep
Mmm... If I'm not mistaken, it's because Symscape's scripts don't automatically fix the issue about building the wmake helper applications. If you build first the Linux version of OpenFOAM - well, just start to build it, you don't need to let it build everything - you can then copy the files from "wmake/platforms/linux64Gcc/" to "wmake/platforms/linux64mingw-w64/".

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply


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
OpenFoam install script Error during paraFoam installation SePe OpenFOAM Installation 10 June 19, 2010 15:15
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 03:01
Re : Problem Installing OpenFOAM on Centos -5.3 mohanphy OpenFOAM Installation 1 February 7, 2010 19:09
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' mfiandor OpenFOAM Installation 2 January 25, 2010 09:50
Compiling OpenFOAM13 on AMD64 with Redhat Enterprise mbeaudoin OpenFOAM Installation 20 June 17, 2008 06:43


All times are GMT -4. The time now is 09:39.