
Install GNU MCSim software on my Mac laptop
- or -
Post a project like this1626
£70(approx. $94)
- Posted:
- Proposals: 2
- Remote
- #3336030
- Awarded
Description
Experience Level: Entry
Hi there, please could you 1) install MCSim onto my MacBook Air and 2) get it to run an exemplar model file?
I have experience of using MCSim on Windows (after it was installed by someone else). Now I would like MCSim to be installed on my Mac. I assume this is possible because the installation guide says "we are distributing the source code and you should be able to compile it for any system, provided you have an ANSI C compliant compiler".
I have little programming experience, and I cannot seem to complete the final stage(s) of installation as it is command-line driven and makes use of Terminal (see notes below).
I am based in Sheffield, and am willing to travel if necessary - perhaps we can meet up in a coffee shop where you could install it for me? You would also need to get MCSim to successfully run an exemplar model file which is provided in the download package (in the 'examples' folder). You would need to show me what steps are needed to get it working please, for my future reference.
MCSim can be downloaded for free at: https://www.gnu.org/software/mcsim/
Installation instructions are available at: https://www.gnu.org/software/mcsim/mcsim.html#Installation
Some more detailed installation notes are in the download package, which I have provided here as 'other helpful material' ('Detailed installation notes'.pdf).
Below are my notes I have made so far regarding 1) installation and 2) running an example model (apologies if they are rather simple), which might be helpful:-
1) Installation
1. Download XCode from app store (MCSim needs to use its C compiler)
2. Download the mcsim package (from web address above), rename to 'mcsim' and put in documents folder.
3. In terminal, cd to documents/mcsim, and enter the following:
'./configure prefix=/users/alexcooper/documents/mcsim libraries=/users/alexcooper/documents/mcsim/lib'
Nb. use of prefix=... ensures that the package's commands will be installed in this directory. By default, installation saves to /usr/local/bin, which access to is apparently denied.
Nb. use of libraries=... ensures that the library files will be installed in this directory. In the installation guide, it says 'for packages that use the X Window System, `configure' can usually find the library files automatically'. In my mac, it seems I need to specify the location (otherwise I later get an error message saying warning: remember to run 'libtool --finish /usr/local/lib')
4. Enter 'make'
5. Enter 'make install'
2) Running an example model file
1. Move the pbpk_man.model file (located in the 'examples' folder) into the ‘mod’ folder.
In terminal, cd to the mod folder. Then enter './mod pbpk_man.model'
Nb. mod translates the file into c code, and creates a file called ‘model.c’. Copy this file into the ‘sim’ folder.
2. Cd to the ‘sim’ folder, and enter 'chmod +x ./makemcsim'
Nb. chmod +x gives permission to the sim folder, which was previously denied (not sure why).
3. Enter './makemcsim'
Nb. I then get an error saying 'mod: command not found'. If you can get this to work, the makemcsim command should produce an executable file. Nb. my notes for the following final steps are for Windows, so the entry commands may need to be adjusted a bit:-
4. Rename the executable file to ‘mcsim.pbpk_man.exe’, and then move it to the main mcsim folder. Also move the corresponding input file (located in the examples folder, called pbpk_man.in) to the mcsim folder.
5. Cd to the mcsim folder, and enter 'mcsim.pbpk_man'
When asked for the input file, enter 'pbpk_man.in'
This should produce an output file. It can be read, for example by changing the extension to .csv
I have experience of using MCSim on Windows (after it was installed by someone else). Now I would like MCSim to be installed on my Mac. I assume this is possible because the installation guide says "we are distributing the source code and you should be able to compile it for any system, provided you have an ANSI C compliant compiler".
I have little programming experience, and I cannot seem to complete the final stage(s) of installation as it is command-line driven and makes use of Terminal (see notes below).
I am based in Sheffield, and am willing to travel if necessary - perhaps we can meet up in a coffee shop where you could install it for me? You would also need to get MCSim to successfully run an exemplar model file which is provided in the download package (in the 'examples' folder). You would need to show me what steps are needed to get it working please, for my future reference.
MCSim can be downloaded for free at: https://www.gnu.org/software/mcsim/
Installation instructions are available at: https://www.gnu.org/software/mcsim/mcsim.html#Installation
Some more detailed installation notes are in the download package, which I have provided here as 'other helpful material' ('Detailed installation notes'.pdf).
Below are my notes I have made so far regarding 1) installation and 2) running an example model (apologies if they are rather simple), which might be helpful:-
1) Installation
1. Download XCode from app store (MCSim needs to use its C compiler)
2. Download the mcsim package (from web address above), rename to 'mcsim' and put in documents folder.
3. In terminal, cd to documents/mcsim, and enter the following:
'./configure prefix=/users/alexcooper/documents/mcsim libraries=/users/alexcooper/documents/mcsim/lib'
Nb. use of prefix=... ensures that the package's commands will be installed in this directory. By default, installation saves to /usr/local/bin, which access to is apparently denied.
Nb. use of libraries=... ensures that the library files will be installed in this directory. In the installation guide, it says 'for packages that use the X Window System, `configure' can usually find the library files automatically'. In my mac, it seems I need to specify the location (otherwise I later get an error message saying warning: remember to run 'libtool --finish /usr/local/lib')
4. Enter 'make'
5. Enter 'make install'
2) Running an example model file
1. Move the pbpk_man.model file (located in the 'examples' folder) into the ‘mod’ folder.
In terminal, cd to the mod folder. Then enter './mod pbpk_man.model'
Nb. mod translates the file into c code, and creates a file called ‘model.c’. Copy this file into the ‘sim’ folder.
2. Cd to the ‘sim’ folder, and enter 'chmod +x ./makemcsim'
Nb. chmod +x gives permission to the sim folder, which was previously denied (not sure why).
3. Enter './makemcsim'
Nb. I then get an error saying 'mod: command not found'. If you can get this to work, the makemcsim command should produce an executable file. Nb. my notes for the following final steps are for Windows, so the entry commands may need to be adjusted a bit:-
4. Rename the executable file to ‘mcsim.pbpk_man.exe’, and then move it to the main mcsim folder. Also move the corresponding input file (located in the examples folder, called pbpk_man.in) to the mcsim folder.
5. Cd to the mcsim folder, and enter 'mcsim.pbpk_man'
When asked for the input file, enter 'pbpk_man.in'
This should produce an output file. It can be read, for example by changing the extension to .csv
Alex C.
100% (1)Projects Completed
1
Freelancers worked with
1
Projects awarded
100%
Last project
14 Jul 2021
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies