installation problem

Asked by PURUSOTTAM GHOSH

After creating work-directory (say test), when I put the command " ./calchep" within "test" directory , it showed me :

[p.ghosh@localhost test]$ ./calchep

X Windows not detected.
CalcHEP has finished with error code 80

At the time of compilation , by putting "make" or "gmake" , I got following messages :
#--------------------------------------------------------
# CalcHEP has compiled successfuly and can be started.
# The manual can be found on the CalcHEP website:
# http://theory.sinp.msu.ru/~pukhov/calchep.html
# The next step is typically to run
# ./mkWORKdir <new_dir>
# where <new_dir> is the new directory where you will do
# your calculations. After creating this directory, you
# should cd into it and run calchep or calchep_batch.
# Please see the manual for further details.
#---------------------------------------------------------"

I am using latest version calchep_3.6.27 . Please tell me how to solve this problem.

thanks

with best regards

Purusottam

Question information

Language:
English Edit question
Status:
Solved
For:
CalcHEP Edit question
Assignee:
No assignee Edit question
Solved by:
Alexander Pukhov
Solved:
Last query:
Last reply:
Revision history for this message
Best Alexander Pukhov (pukhov) said :
#1

You should get a warning after compilation
=======================
  Warning:!!! CalcHEP has compiled without X11.
    It means that CalcHEP can only be used in 'blind' mode. (See manual).
    To use CalcHEP in interactive mode, install the package
          libX11-devel for Fedora/Scientific, Darwin(MAC)
          libX11-dev for Ubuntu/Debian
          xorg-x11-devel for SUSE
    and recompile CalcHEP by
        make clean
        make
=====================
So, more likely you have not header files for X11 which usually are
disposed in
     /usr/include/X11

Just update your operation system using instructions presented above.

Best
     Alexander Pukhov

On 04/10/2017 05:47 PM, PURUSOTTAM GHOSH wrote:
> New question #615981 on CalcHEP:
> https://answers.launchpad.net/calchep/+question/615981
>
> After creating work-directory (say test), when I put the command " ./calchep" within "test" directory , it showed me :
>
> [p.ghosh@localhost test]$ ./calchep
>
> X Windows not detected.
> CalcHEP has finished with error code 80
>
> At the time of compilation , by putting "make" or "gmake" , I got following messages :
> #--------------------------------------------------------
> # CalcHEP has compiled successfuly and can be started.
> # The manual can be found on the CalcHEP website:
> # http://theory.sinp.msu.ru/~pukhov/calchep.html
> # The next step is typically to run
> # ./mkWORKdir <new_dir>
> # where <new_dir> is the new directory where you will do
> # your calculations. After creating this directory, you
> # should cd into it and run calchep or calchep_batch.
> # Please see the manual for further details.
> #---------------------------------------------------------"
>
> I am using latest version calchep_3.6.27 . Please tell me how to solve this problem.
>
> thanks
>
> with best regards
>
> Purusottam
>
>
>

Revision history for this message
Yuchen Guo (lgguoyuchen) said :
#2

Dear Alexander Pukhov,

I have already installed the libx11-dev, and have the header files in /usr/include/X11.
At the time of compilation , by putting "make" , following messages looks all right :
#--------------------------------------------------------
# CalcHEP has compiled successfuly and can be started.
# The manual can be found on the CalcHEP website:
# http://theory.sinp.msu.ru/~pukhov/calchep.html
# The next step is typically to run
# ./mkWORKdir <new_dir>
# where <new_dir> is the new directory where you will do
# your calculations. After creating this directory, you
# should cd into it and run calchep or calchep_batch.
# Please see the manual for further details.
#---------------------------------------------------------"

But when I start CalcHEP, the gray window will appear with no button or words, and when I turnoff this window, it shows "CalcHEP has finished with error code 80".

My system is Ubuntu 16.04, I change another computer with Ubuntu 14, this problem still happen.
I am using latest version calchep_3.6.27 . Please tell me how to solve this problem.

thanks

with best regards

Revision history for this message
PURUSOTTAM GHOSH (purusottam) said :
#3

Thanks Alexander Pukhov, that solved my question.

Revision history for this message
Alexander Pukhov (pukhov) said :
#4

I guess font is chosen wrongly. It could be improved via calchep.ini

If you work in directory "work" then this file should contain

  font *

May be * gives too large set of fonts and Calchep selects some wrong one.
You can check fonts available on your computer by command

    xlsfonts

And write some normal font which is available.

font *adobe*

It you created new directory using
    mkWORKdir
then
    font -adobe-courier-bold-r-normal--14-*
May be you have not such font at all. Again, try to replace this font
on some other.

In version 3.6.28 (on WEB) work with fonts was slightly improved. May be
you will not see this problem.

Let me know about result.

Best
    Alexander Pukhov

On 05/15/2017 05:03 AM, Yuchen Guo wrote:
> Question #615981 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/615981
>
> Yuchen Guo requested more information:
> Dear Alexander Pukhov,
>
> I have already installed the libx11-dev, and have the header files in /usr/include/X11.
> At the time of compilation , by putting "make" , following messages looks all right :
> #--------------------------------------------------------
> # CalcHEP has compiled successfuly and can be started.
> # The manual can be found on the CalcHEP website:
> # http://theory.sinp.msu.ru/~pukhov/calchep.html
> # The next step is typically to run
> # ./mkWORKdir <new_dir>
> # where <new_dir> is the new directory where you will do
> # your calculations. After creating this directory, you
> # should cd into it and run calchep or calchep_batch.
> # Please see the manual for further details.
> #---------------------------------------------------------"
>
> But when I start CalcHEP, the gray window will appear with no button or words, and when I turnoff this window, it shows "CalcHEP has finished with error code 80".
>
> My system is Ubuntu 16.04, I change another computer with Ubuntu 14, this problem still happen.
> I am using latest version calchep_3.6.27 . Please tell me how to solve this problem.
>
> thanks
>
> with best regards
>

Revision history for this message
Yuchen Guo (lgguoyuchen) said :
#5

Dear Alexander Pukhov,

Thank you for your help, I can use the CalcHEP now. The font was indeed chosen wrongly.
I replace the font on the one which is in my computer, and this problem is solved.
But the window is a little small which I think it depend on which font I selected.
Is there any way or command can help me to change the size of the window?

thanks again

with best regards

Yuchen Guo

Revision history for this message
Alexander Pukhov (pukhov) said :
#6

Yes , as usual, Ctrl+ and Ctrl -.

May be you should have a freedom in font definition. Use font name
where font size is replaced on *.

Best
    Alexander Pukhov

On 05/16/2017 06:22 AM, Yuchen Guo wrote:
> Question #615981 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/615981
>
> Yuchen Guo posted a new comment:
> Dear Alexander Pukhov,
>
> Thank you for your help, I can use the CalcHEP now. The font was indeed chosen wrongly.
> I replace the font on the one which is in my computer, and this problem is solved.
> But the window is a little small which I think it depend on which font I selected.
> Is there any way or command can help me to change the size of the window?
>
> thanks again
>
> with best regards
>
> Yuchen Guo
>

Revision history for this message
Yuchen Guo (lgguoyuchen) said :
#7

Thanks Alexander Pukhov, that solved my question.