AtChem / AtChem2

Atmospheric chemistry box-model for the MCM
MIT License
58 stars 23 forks source link

Build_Atchem2.sh - make sharedlib issue #434

Closed baongocthai closed 2 years ago

baongocthai commented 3 years ago

Hi all,

When I tried to run the Build_Atchem2.sh using the following command: ./build_atchem2.sh mcm/mechanism_test.fac model/configuration/ mcm/

The following log appears: _* facsimile mechanism file: mcm/mechanism_test.fac

call mech_converter.py /home/nus/Documents/Atchem2/AtChem2-1.2/mcm Running fix_fac_file on /home/nus/Documents/Atchem2/AtChem2-1.2/mcm/mechanism_test.fac /home/nus/Documents/Atchem2/AtChem2-1.2/mcm/mechanism_test.fac: file read in 255 items 0 corrections made - now removing old Reading input file looping over inputted RO2s adding RO2 to model/configuration//mechanism.ro2

make sharedlib model/configuration/ make: *** No rule to make target 'sharedlib'. Stop._

Could you advise on how to solve the problem with sharedlib?

Thanks!

rs028 commented 3 years ago

@baongocthai are you running the build_atchem2.sh script from the main directory or from the build/ directory?

baongocthai commented 3 years ago

Hi @rs028 , thanks for the guide!! I managed to resolved the problem by looking at your response!

morshedahmed17 commented 2 years ago

Hi all,

When I tried to run the Build_Atchem2.sh using the following command: ./build/build_atchem2.sh model_1/mechanism_test.fac model_1/configuration/ mcm/

call mech_converter.py

/Users/tanzinaakther/Desktop/AtChem2/model_1

Running fix_fac_file on /Users/tanzinaakther/Desktop/AtChem2/model_1/mechanism_test.fac

/Users/tanzinaakther/Desktop/AtChem2/model_1/mechanism_test.fac: file read in 255 items

0 corrections made - now removing old

Reading input file

looping over inputted RO2s

adding RO2 to model_1/configuration//mechanism.ro2

make sharedlib model_1/configuration/

make: *** No rule to make target `sharedlib'. Stop.

Not sure how to solve this. It's a similar problem like @baongocthai.

rs028 commented 2 years ago

Hi @morshedahmed17, the problem of @baongocthai was launching the build script from within the build/ directory, instead of the main directory. Is this is your case?

morshedahmed17 commented 2 years ago

I am running it from the source directory.

./build/build_atchem2.sh model_1/mechanism_test.fac model_1/configuration/ mcm/

Getting the same error message. Please see the attached image also.

AtChem2

rs028 commented 2 years ago

Are you able to compile the test mechanism and run the tests? See the manual at the end of the installation section,

morshedahmed17 commented 2 years ago

Hello,

The test runs are showing errors. Please see the attached. Screen Shot 2021-12-06 at 5 30 05 PM

rs028 commented 2 years ago

I would say that something is wrong with your dependencies or the paths. Can you try to reinstall everything, maybe on a different machine if possible?

rs028 commented 2 years ago

@morshedahmed17 did you solve the problem? Have you tried the development version (https://github.com/AtChem/AtChem2/archive/refs/heads/master.zip) instead of one of the releases?

morshedahmed17 commented 2 years ago

I have solved the problem. I tried with my university cluster and it worked. Thanks