Getting Started

Asked by Joseph Bevelacqua on 2018-08-12

I am a new Linux user. I downloaded MADGRAPH, but am confused on how to proceed. Would someone be kind enough to provide the specific commands to run the code. In particular, please provide the commands to add the dependent files and the command to run the code. Any assistance would be greatly appreciated.

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
2018-08-15
Last reply:
2018-08-15

Hi,

the command to run the code
is
./bin/mg5_aMC

then you can type "tutorial" to learn how the code works

to install external package (not maintained by us).
You can type "install XXXX"
to see the list of all package you can do
"help install" or "install" follow by two tabulation (we have auto-completion)

Cheers,

Olivier

> On 12 Aug 2018, at 02:58, Joseph Bevelacqua <email address hidden> wrote:
>
> New question #672062 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/672062
>
> I am a new Linux user. I downloaded MADGRAPH, but am confused on how to proceed. Would someone be kind enough to provide the specific commands to run the code. In particular, please provide the commands to add the dependent files and the command to run the code. Any assistance would be greatly appreciated.
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Joseph Bevelacqua (jack-224) said : #2

Oliver,

Thank you for your suggestions. I am obviously dumber than a box of rocks. The following resulted when I tried to run the code:

eightvirtues@eightvirtues-desktop:~/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin$ ./bin/mg5_aMC
bash: ./bin/mg5_aMC: No such file or directory

The following resulted when I attempted to install Python:

eightvirtues@eightvirtues-desktop:~/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin$ install Python
install: missing destination file operand after 'Python'

Could you be kind enough to provide additional suggestions?

Hi,

> Thank you for your suggestions. I am obviously dumber than a box of
> rocks. The following resulted when I tried to run the code:

I would actually suggest that you use some guidance from one of your local friend.
(another PhD or an IT guy from your department(

> eightvirtues@eightvirtues-desktop:~/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin$ ./bin/mg5_aMC
> bash: ./bin/mg5_aMC: No such file or directory

Since you are already in the "bin" directory, then you can just type
./mg5_aMC

> eightvirtues@eightvirtues-desktop:~/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin$ install Python
> install: missing destination file operand after 'Python'

If Python is not yet install on your machine, it is probably better to ask your sysadmin to install it.
Since then you can use apt-get or yum (depending of your os) to install those in a very quick way.

Cheers,

Olivier

> On 14 Aug 2018, at 04:32, Joseph Bevelacqua <email address hidden> wrote:
>
> Question #672062 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/672062
>
> Status: Answered => Open
>
> Joseph Bevelacqua is still having a problem:
> Oliver,
>
> Thank you for your suggestions. I am obviously dumber than a box of
> rocks. The following resulted when I tried to run the code:
>
> eightvirtues@eightvirtues-desktop:~/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin$ ./bin/mg5_aMC
> bash: ./bin/mg5_aMC: No such file or directory
>
>
> The following resulted when I attempted to install Python:
>
> eightvirtues@eightvirtues-desktop:~/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin$ install Python
> install: missing destination file operand after 'Python'
>
> Could you be kind enough to provide additional suggestions?
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Joseph Bevelacqua (jack-224) said : #4

I consulted the LinuxMint Forum and was able to proceed a bit farther, but I am still not there yet. The following is the extract from my attempt to run the code. Any suggestions on how to proceed would be appreciated.

eightvirtues@eightvirtues-desktop:~/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin$ sudo apt install python2.7
[sudo] password for eightvirtues:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python2.7 is already the newest version (2.7.15~rc1-1).
The following packages were automatically installed and are no longer required:
  linux-headers-4.15.0-23 linux-headers-4.15.0-23-generic linux-image-4.15.0-23-generic linux-modules-4.15.0-23-generic
  linux-modules-extra-4.15.0-23-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
eightvirtues@eightvirtues-desktop:~/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin$ ./mg5 aMC
Warning: The script ./bin/mg5 will be removed in future versions; use ./bin/mg5_aMC instead.
************************************************************
* *
* W E L C O M E to *
* M A D G R A P H 5 _ a M C @ N L O *
* *
* *
* * * *
* * * * * *
* * * * * 5 * * * * *
* * * * * *
* * * *
* *
* VERSION 2.6.3.2 2018-06-22 *
* *
* The MadGraph5_aMC@NLO Development Team - Find us at *
* https://server06.fynu.ucl.ac.be/projects/madgraph *
* and *
* http://amcatnlo.web.cern.ch/amcatnlo/ *
* *
* Type 'help' for in-line help. *
* Type 'tutorial' to learn how MG5 works *
* Type 'tutorial aMCatNLO' to learn how aMC@NLO works *
* Type 'tutorial MadLoop' to learn how MadLoop works *
* *
************************************************************
load MG5 configuration from ../input/mg5_configuration.txt
fastjet-config does not seem to correspond to a valid fastjet-config executable (v3+). We will use fjcore instead.
 Please set the 'fastjet'variable to the full (absolute) /PATH/TO/fastjet-config (including fastjet-config).
 MG5_aMC> set fastjet /PATH/TO/fastjet-config

lhapdf-config does not seem to correspond to a valid lhapdf-config executable.
Please set the 'lhapdf' variable to the (absolute) /PATH/TO/lhapdf-config (including lhapdf-config).
Note that you can still compile and run aMC@NLO with the built-in PDFs
 MG5_aMC> set lhapdf /PATH/TO/lhapdf-config

Using default text editor "vi". Set another one in ./input/mg5_configuration.txt
No valid eps viewer found. Please set in ./input/mg5_configuration.txt
Using default web browser "firefox". Set another one in ./input/mg5_configuration.txt
import /home/eightvirtues/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin/aMC
The import format was not given, so we guess it as proc_v4
ERROR: I/O error on file /home/eightvirtues/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin/aMC (2): No such file or directory
Command "import /home/eightvirtues/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin/aMC" interrupted in sub-command:
"#import proc_v4 /home/eightvirtues/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin/aMC" with error:
InvalidCmd : "/home/eightvirtues/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin/aMC" is not a valid path
quit
eightvirtues@eightvirtues-desktop:~/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin$ tutorial
tutorial: command not found
eightvirtues@eightvirtues-desktop:~/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin$

Joseph Bevelacqua (jack-224) said : #5

I consulted the LinuxMint Forum and was able to proceed a bit farther, but I am still not there yet. The following is the extract from my attempt to run the code. Any suggestions on how to proceed would be appreciated.

eightvirtues@eightvirtues-desktop:~/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin$ sudo apt install python2.7
[sudo] password for eightvirtues:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python2.7 is already the newest version (2.7.15~rc1-1).
The following packages were automatically installed and are no longer required:
  linux-headers-4.15.0-23 linux-headers-4.15.0-23-generic linux-image-4.15.0-23-generic linux-modules-4.15.0-23-generic
  linux-modules-extra-4.15.0-23-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
eightvirtues@eightvirtues-desktop:~/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin$ ./mg5 aMC
Warning: The script ./bin/mg5 will be removed in future versions; use ./bin/mg5_aMC instead.
************************************************************
* *
* W E L C O M E to *
* M A D G R A P H 5 _ a M C @ N L O *
* *
* *
* * * *
* * * * * *
* * * * * 5 * * * * *
* * * * * *
* * * *
* *
* VERSION 2.6.3.2 2018-06-22 *
* *
* The MadGraph5_aMC@NLO Development Team - Find us at *
* https://server06.fynu.ucl.ac.be/projects/madgraph *
* and *
* http://amcatnlo.web.cern.ch/amcatnlo/ *
* *
* Type 'help' for in-line help. *
* Type 'tutorial' to learn how MG5 works *
* Type 'tutorial aMCatNLO' to learn how aMC@NLO works *
* Type 'tutorial MadLoop' to learn how MadLoop works *
* *
************************************************************
load MG5 configuration from ../input/mg5_configuration.txt
fastjet-config does not seem to correspond to a valid fastjet-config executable (v3+). We will use fjcore instead.
 Please set the 'fastjet'variable to the full (absolute) /PATH/TO/fastjet-config (including fastjet-config).
 MG5_aMC> set fastjet /PATH/TO/fastjet-config

lhapdf-config does not seem to correspond to a valid lhapdf-config executable.
Please set the 'lhapdf' variable to the (absolute) /PATH/TO/lhapdf-config (including lhapdf-config).
Note that you can still compile and run aMC@NLO with the built-in PDFs
 MG5_aMC> set lhapdf /PATH/TO/lhapdf-config

Using default text editor "vi". Set another one in ./input/mg5_configuration.txt
No valid eps viewer found. Please set in ./input/mg5_configuration.txt
Using default web browser "firefox". Set another one in ./input/mg5_configuration.txt
import /home/eightvirtues/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin/aMC
The import format was not given, so we guess it as proc_v4
ERROR: I/O error on file /home/eightvirtues/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin/aMC (2): No such file or directory
Command "import /home/eightvirtues/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin/aMC" interrupted in sub-command:
"#import proc_v4 /home/eightvirtues/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin/aMC" with error:
InvalidCmd : "/home/eightvirtues/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin/aMC" is not a valid path
quit
eightvirtues@eightvirtues-desktop:~/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin$ tutorial
tutorial: command not found
eightvirtues@eightvirtues-desktop:~/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin$

Hi,

Looks like you run
./mg5 aMC

While it should be
./mg5_aMC

Note the underscore!

Cheers,

Olivier

> On 15 Aug 2018, at 04:43, Joseph Bevelacqua <email address hidden> wrote:
>
> Question #672062 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/672062
>
> Joseph Bevelacqua gave more information on the question:
> I consulted the LinuxMint Forum and was able to proceed a bit farther,
> but I am still not there yet. The following is the extract from my
> attempt to run the code. Any suggestions on how to proceed would be
> appreciated.
>
> eightvirtues@eightvirtues-desktop:~/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin$ sudo apt install python2.7
> [sudo] password for eightvirtues:
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> python2.7 is already the newest version (2.7.15~rc1-1).
> The following packages were automatically installed and are no longer required:
> linux-headers-4.15.0-23 linux-headers-4.15.0-23-generic linux-image-4.15.0-23-generic linux-modules-4.15.0-23-generic
> linux-modules-extra-4.15.0-23-generic
> Use 'sudo apt autoremove' to remove them.
> 0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
> eightvirtues@eightvirtues-desktop:~/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin$ ./mg5 aMC
> Warning: The script ./bin/mg5 will be removed in future versions; use ./bin/mg5_aMC instead.
> ************************************************************
> * *
> * W E L C O M E to *
> * M A D G R A P H 5 _ a M C @ N L O *
> * *
> * *
> * * * *
> * * * * * *
> * * * * * 5 * * * * *
> * * * * * *
> * * * *
> * *
> * VERSION 2.6.3.2 2018-06-22 *
> * *
> * The MadGraph5_aMC@NLO Development Team - Find us at *
> * https://server06.fynu.ucl.ac.be/projects/madgraph *
> * and *
> * http://amcatnlo.web.cern.ch/amcatnlo/ *
> * *
> * Type 'help' for in-line help. *
> * Type 'tutorial' to learn how MG5 works *
> * Type 'tutorial aMCatNLO' to learn how aMC@NLO works *
> * Type 'tutorial MadLoop' to learn how MadLoop works *
> * *
> ************************************************************
> load MG5 configuration from ../input/mg5_configuration.txt
> fastjet-config does not seem to correspond to a valid fastjet-config executable (v3+). We will use fjcore instead.
> Please set the 'fastjet'variable to the full (absolute) /PATH/TO/fastjet-config (including fastjet-config).
> MG5_aMC> set fastjet /PATH/TO/fastjet-config
>
> lhapdf-config does not seem to correspond to a valid lhapdf-config executable.
> Please set the 'lhapdf' variable to the (absolute) /PATH/TO/lhapdf-config (including lhapdf-config).
> Note that you can still compile and run aMC@NLO with the built-in PDFs
> MG5_aMC> set lhapdf /PATH/TO/lhapdf-config
>
> Using default text editor "vi". Set another one in ./input/mg5_configuration.txt
> No valid eps viewer found. Please set in ./input/mg5_configuration.txt
> Using default web browser "firefox". Set another one in ./input/mg5_configuration.txt
> import /home/eightvirtues/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin/aMC
> The import format was not given, so we guess it as proc_v4
> ERROR: I/O error on file /home/eightvirtues/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin/aMC (2): No such file or directory
> Command "import /home/eightvirtues/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin/aMC" interrupted in sub-command:
> "#import proc_v4 /home/eightvirtues/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin/aMC" with error:
> InvalidCmd : "/home/eightvirtues/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin/aMC" is not a valid path
> quit
> eightvirtues@eightvirtues-desktop:~/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin$ tutorial
> tutorial: command not found
> eightvirtues@eightvirtues-desktop:~/Desktop/Madgraph/MG5_aMC_v2_6_3_2/bin$
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Can you help with this problem?

Provide an answer of your own, or ask Joseph Bevelacqua for more information if necessary.

To post a message you must log in.