Re: Problem in installation of MPB

Mike Taverne <[email protected]> Wed, 7 Oct 2015 09:02:22 +0100
Newsgroups gmane.comp.science.photonic-bands
Message-ID <[email protected]>
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--===============1515182233437044968==
Content-Type: multipart/signed; micalg=pgp-sha1;
 protocol="application/pgp-signature";
 boundary="7gVkxh5TwM6EGJEMmaPmcKV2VNRE7DVSe"

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--7gVkxh5TwM6EGJEMmaPmcKV2VNRE7DVSe
Content-Type: multipart/mixed;
 boundary="------------020308050305000708040809"

This is a multi-part message in MIME format.
--------------020308050305000708040809
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

If you used "sudo apt-get install mpb" and it did not give you any
errors, then all the dependencies like Guile, libctl, etc should have
been installed as well.

However your command looks wrong. You seem to have tried to run a script
in interactive mode.

There are two ways to run MPB:
1) Interactively
2) With a script

1) Interactively:
-----------------
Just type "mpb" in a terminal and press enter.
After that, your command prompt should change to something like "mpb>".
You can then directly enter the commands from the wiki, such as:
  (set! num-bands 8)

2) With a script:
-----------------
In this case, you pass a .ctl file to mpb, such as the one attached to
this e-mail, which runs the first simulation from the official tutorial.
To do this, you run the following command:
  mpb MPB-official-tutorial.ctl

All the output will be printed in the terminal.
If you want to save it, you redirect the output to a file using ">" like
this:
  mpb MPB-official-tutorial.ctl > MPB-official-tutorial.out


Here are some command-line tutorials if you want more info about
redirections, etc:
http://cli.learncodethehardway.org/book/
http://linuxcommand.org/

And the MPB tutorial, which explains all the MPB basics:
http://ab-initio.mit.edu/wiki/index.php/MPB_User_Tutorial



On 06/10/15 17:31, ASHINA wrote:
> I have installed MPB through command line using the following command
> sudo apt-get install mpb
> but whenevr I try to run the following
> mpb> abc.ctl >& abc.out
> I get an error of unbound variable.
> Is there a problem in my installation of MPB. Are all the packages like=

> BLAS, LAPACK etc not installed or am I doing anything else wrong?
>=20
>=20
> _______________________________________________
> mpb-discuss mailing list
> [email protected]
> http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss
>=20


--------------020308050305000708040809
Content-Type: text/plain; charset=UTF-8;
 name="MPB-official-tutorial.ctl"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="MPB-official-tutorial.ctl"

OyBiYXNlZCBvbiBodHRwOi8vYWItaW5pdGlvLm1pdC5lZHUvd2lraS9pbmRleC5waHAvTVBC
X1VzZXJfVHV0b3JpYWwgKGZpcnN0IHBhcnQgb25seSkKKHNldCEgbnVtLWJhbmRzIDgpCgoo
c2V0ISBrLXBvaW50cyAobGlzdCAodmVjdG9yMyAwIDAgMCkgICAgIDsgR2FtbWEKICAgICAg
ICAgICAgICAgICAgICAgKHZlY3RvcjMgMC41IDAgMCkgICA7IFgKICAgICAgICAgICAgICAg
ICAgICAgKHZlY3RvcjMgMC41IDAuNSAwKSA7IE0KICAgICAgICAgICAgICAgICAgICAgKHZl
Y3RvcjMgMCAwIDApKSkgICA7IEdhbW1hCgooc2V0ISBrLXBvaW50cyAoaW50ZXJwb2xhdGUg
NCBrLXBvaW50cykpCgooc2V0ISBnZW9tZXRyeSAobGlzdCAobWFrZSBjeWxpbmRlciAKICAg
ICAgICAgICAgICAgICAgICAgICAoY2VudGVyIDAgMCAwKSAocmFkaXVzIDAuMikgKGhlaWdo
dCBpbmZpbml0eSkKICAgICAgICAgICAgICAgICAgICAgICAobWF0ZXJpYWwgKG1ha2UgZGll
bGVjdHJpYyAoZXBzaWxvbiAxMikpKSkpKQoKKHNldCEgZ2VvbWV0cnktbGF0dGljZSAobWFr
ZSBsYXR0aWNlIChzaXplIDEgMSBuby1zaXplKSkpCgooc2V0ISByZXNvbHV0aW9uIDMyKQoK
KHJ1bi10ZSkgOyBOb3QgaW4gYSBjb2RlIGJsb2NrIG9uIHRoZSB3aWtpLCBidXQgbWVudGlv
bmVkIGluIHRoZSB0ZXh0Lgo=
--------------020308050305000708040809--

--7gVkxh5TwM6EGJEMmaPmcKV2VNRE7DVSe
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJWFNGPAAoJEAsx6g3o8ssJwp0QALJle2XYDXey3gvNXPzLd25I
dMnWDlS0MnaRnr7OelnOSS45S0yTcV8u0MKruitIbBOo/Ib/CIamL4k5tzWj6Vf3
XmFIWfP+O4wrz1ro+risKZnGuHiwFYib5ITqm7YhhiHPUNxq1qYQC3pIDjLqzsej
Uxmzv8vPnloYX5wBQPjyb2v2NMj+tIsLdeuZ/7JAEk2zY0JGELiqIXfM7Wju05lK
oqjiCkinEos/JOt7ozduh22A3k8I2nOOJMEIbYZk25KVo+FtjQktnmfUd6GLPG9o
nDR8utu/vuMjGGiTw212CGghrlkqjCIqY91R4uqT5OAOCmCUQd8Ln2bnv7LIddeQ
qdjvr0Muha5N+VY0CWTe8Pesobr4ZrfO1BDWSQML7JfwXnTEj55z1Jpx6/FNJ3l4
FeFDKtJ/tEQSF8nzaicyNFvDkz3na/67mQZ8O0h92UdwZ6ZDzYpSigamXRZ8d+5C
L201Ik2nfcUkMlCLAkufygu1piA3jDQR2DWk2mIfAy7U5DeA3DlK10FHXKc0rwne
SXzmwrSAwws6rCXJNzC8wgiHHGitxPHQ1YoU95jJSZE50ji6xjBvldgla8LCEQHi
zAu30vQrdqrDXx+jEVns/B1zX9n80uG3S7LyBRRnWDJAx0t0q3bAi/15M39Iabjn
HXyQ4yVduRbARciSooqa
=8e1q
-----END PGP SIGNATURE-----

--7gVkxh5TwM6EGJEMmaPmcKV2VNRE7DVSe--


--===============1515182233437044968==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbXBiLWRpc2N1
c3MgbWFpbGluZyBsaXN0Cm1wYi1kaXNjdXNzQGFiLWluaXRpby5taXQuZWR1Cmh0dHA6Ly9hYi1p
bml0aW8ubWl0LmVkdS9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbXBiLWRpc2N1c3M=

--===============1515182233437044968==--