llibx11-dev calchep

Asked by Matheus Pereira Macedo de Sousa on 2020-11-12

I'm having trouble finishing the installation process of CalcHEP on ubunto, the end it returns me this

#--------------------------------------------------------
# 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.
#---------------------------------------------------------"
 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

However, when I try to locate libx11-dev it appears to me like this

(root_) matheus@matheus-pc:~/Downloads/calchep_3.8.5$ locate libx11-dev
/home/matheus/Documentos/usr/share/doc/libx11-dev
/home/matheus/Documentos/usr/share/doc/libx11-dev/changelog.Debian.gz
/home/matheus/Documentos/usr/share/doc/libx11-dev/copyright
/usr/share/doc/libx11-dev
/usr/share/doc/libx11-dev/changelog.Debian.gz
/usr/share/doc/libx11-dev/copyright
/var/cache/apt/archives/libx11-dev_2%3a1.6.8-1_amd64.deb
/var/lib/dpkg/info/libx11-dev:amd64.list
/var/lib/dpkg/info/libx11-dev:amd64.md5sums

that is, it is on my machine, but cannot find to compile CalcHEP.
Even if it is with the capital X, he says he can't find it to install

matheus@matheus-pc:~/Downloads/calchep_3.8.5$ sudo apt-get -y install libX11-dev
[sudo] password for matheus:
Reading package lists ... Done
Building dependency tree
Reading status information ... Ready
E: Unable to find the libX11-dev package

Question information

Language:
English Edit question
Status:
Solved
For:
CalcHEP Edit question
Assignee:
No assignee Edit question
Solved by:
Matheus Pereira Macedo de Sousa
Solved:
Last query:
Last reply:
Revision history for this message
Alexander Belyaev (alexander.belyaev) said :
#1

In the latest Ubuntu versions,

the name

libX11-dev

is changed to

libx11-dev

(Capital X -> lower case x)

So try to install

libx11-dev

When you do this,
do

make clean
and
make

again in CalcHEP installation folder.
Let us know if this solves your problem

Best
Sasha

On 12/11/2020 16:50, Matheus Pereira Macedo de Sousa wrote:
> New question #693978 on CalcHEP:
> https://answers.launchpad.net/calchep/+question/693978
>
> I'm having trouble finishing the installation process of CalcHEP on ubunto, the end it returns me this
>
> #--------------------------------------------------------
> # 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.
> #---------------------------------------------------------"
> 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
>
>
> However, when I try to locate libx11-dev it appears to me like this
>
> (root_) matheus@matheus-pc:~/Downloads/calchep_3.8.5$ locate libx11-dev
> /home/matheus/Documentos/usr/share/doc/libx11-dev
> /home/matheus/Documentos/usr/share/doc/libx11-dev/changelog.Debian.gz
> /home/matheus/Documentos/usr/share/doc/libx11-dev/copyright
> /usr/share/doc/libx11-dev
> /usr/share/doc/libx11-dev/changelog.Debian.gz
> /usr/share/doc/libx11-dev/copyright
> /var/cache/apt/archives/libx11-dev_2%3a1.6.8-1_amd64.deb
> /var/lib/dpkg/info/libx11-dev:amd64.list
> /var/lib/dpkg/info/libx11-dev:amd64.md5sums
>
> that is, it is on my machine, but cannot find to compile CalcHEP.
> Even if it is with the capital X, he says he can't find it to install
>
> matheus@matheus-pc:~/Downloads/calchep_3.8.5$ sudo apt-get -y install libX11-dev
> [sudo] password for matheus:
> Reading package lists ... Done
> Building dependency tree
> Reading status information ... Ready
> E: Unable to find the libX11-dev package
>
>
>
>
>
>
--
______________________________________________________________________
Prof. Alexander S Belyaev (<email address hidden>)
https://www.hep.phys.soton.ac.uk/content/alexander-belyaev

School of Physics & Astronomy, University of Southampton
Office 5047, SO17 1BJ, TEL: +44 23805 98509, FAX: +44 23805 93910
.....................................................................
Particle Physics Department, Rutherford Appleton Laboratory
Didcot, OX11 0QX, TEL: +44 12354 45562, FAX: +44 12354 46733
.....................................................................
CERN, CH-1211 Geneva 23, Switzerland
Office 40/1-B20, Mailbox: E27910, TEL: +41 2276 71642
______________________________________________________________________

Revision history for this message
Matheus Pereira Macedo de Sousa (mpmacedo) said :
#2

He tells me he already has it installed on my machine -->

matheus@matheus-pc:~$ sudo apt-get install libx11-dev
Reading package lists ... Done
Building dependency tree
Reading status information ... Ready
libx11-dev is already the newest version (2:1.6.8-1).
The main packages were automatically installed and are no longer available:
  cernlib-base cernlib-base-dev cernlib-core cernlib-montecarlo cfortran dzedit geant321-data geant321-doc kuipc kxterm
  libcojets2-dev libcojets2-gfortran libdrm-dev libeurodec1-dev libeurodec1-gfortran libfontconfig1-dev libfreetype6-dev
  libgeant321-2-gfortran libgles1 libglvnd-core-dev libglvnd-dev libgraflib1-gfortran libgrafx11-1-gfortran libherwig59-2-dev
  libherwig59-2-gfortran libice-dev libisajet758-3-dev libisajet758-3-gfortran libkernlib1-dev libkernlib1-gfortran libmathlib2-dev
  libmathlib2-gfortran libmotif-common libmrm4 libopengl0 libpacklib-lesstif1-gfortran libpacklib1-dev libpacklib1-gfortran
  libpawlib-lesstif3-gfortran libpawlib2-gfortran libpdflib804-2-dev libpdflib804-2-gfortran libphotos202-1-gfortran
  libphotos202-dev libphtools2-dev libphtools2-gfortran libsm-dev libuil4 libxbae-dev libxbae4m libxcb-dri2-0-dev libxcb-dri3-dev
  libxcb-glx0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev
  libxm4 libxshmfence-dev montecarlo-base montecarlo-data nypatchy paw paw++ paw-common paw-demos uil uuid-dev x11proto-damage-dev
  x11proto-fixes-dev x11proto-xext-dev x11proto-xf86vidmode-dev
Use 'sudo apt autoremove' to remove them.
0 updated packages, 0 new packages installed, 0 to be removed and 1 not updated.

when i do make -->

./getFlags
numerical type Ok
C compiler detected
: shared liblary generation OK
You have empty LX11 parameter that means that
calchep will be compiled for Blind job only.
./getFlags: 639: echo
  If you would like to use CalcHEP in interactive
  mode, please, install the following additional package:
    libX11-devel for Fedora/Scientific, Darwin(MAC)
    libX11-dev for Ubuntu/Debian [old Ubunty]
    libx11-dec for Ubuntu/Debian [new Ubunty]
    xorg-x11-devel for SUSE: not found
Fortran compiler is detected
gfortran OK
FFLAGS OK
./sbin/setPath /home/matheus/Downloads/calchep_3.8.5
chmod 755 mkWORKdir
make -C c_source
make[1]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source'
make -C getmem
make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/getmem'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source/getmem'
make -C chep_crt
make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/chep_crt'
cp ../../lib/serv.a ../../lib/servNoX11.a
/home/matheus/miniconda3/envs/root_/bin/x86_64-conda-linux-gnu-cc -c -g -std=gnu99 -fPIC -Iinclude -I../getmem/include -I/usr/include -o noxwin/X11_crt0.o noxwin/X11_crt0.c
ar d ../../lib/servNoX11.a X11_crt0.o
ar r ../../lib/servNoX11.a noxwin/X11_crt0.o
ranlib ../../lib/servNoX11.a
rm noxwin/X11_crt0.o
make[2]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source/chep_crt'
make -C service2
make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/service2'
/home/matheus/miniconda3/envs/root_/bin/x86_64-conda-linux-gnu-cc -g -std=gnu99 -fPIC -Iinclude -I../../include -I../chep_crt/include -I../getmem/include -o ../../bin/calc main_calc.c ../../lib/serv.a -lm
make[2]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source/service2'
make -C polynom
make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/polynom'
make[2]: '../../lib/symb.a' is up to date.
make[2]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source/polynom'
make -C ntools
make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/ntools'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source/ntools'
make -C dynamicME
make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/dynamicME'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source/dynamicME'
make -C plot
make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/plot'
make[2]: '../../bin/plot_view' is up to date.
make[2]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source/plot'
make -C strfun
make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/strfun'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source/strfun'
make -C num
make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/num'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source/num'
make -C tab
make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/tab'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source/tab'
make -C SLHAplus
make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/SLHAplus'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source/SLHAplus'
make -C mix_events
make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/mix_events'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source/mix_events'
make -C symb
make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/symb'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source/symb'
make[1]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source'
#--------------------------------------------------------
# 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.
#---------------------------------------------------------"
 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

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

did you first

make clean

?

Revision history for this message
Matheus Pereira Macedo de Sousa (mpmacedo) said :
#4

* Yes.

* The beginning of the make execution, after I do the make clean is this:

matheus@matheus-pc:~/Downloads/calchep_3.8.5$ make
./getFlags
MAKE= make
Unknown compiler /home/matheus/miniconda3/envs/root_/bin/x86_64-conda-linux-gnu-cc
UNAME=Linux ???
numerical type Ok
C compiler detected
: shared liblary generation OK
Trying to detect X11
search by xmkmf
      fails
search X11 according to list of possible distinations
      fails
X11 not detected. CalcHEP will be compiled in Blind mode
Fortran compiler is detected
gfortran OK
FFLAGS OK
./sbin/setPath /home/matheus/Downloads/calchep_3.8.5
chmod 755 mkWORKdir
make -C c_source
make[1]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source'
make -C getmem
make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/getmem'
/home/matheus/miniconda3/envs/root_/bin/x86_64-conda-linux-gnu-cc -g -std=gnu99 -fPIC -Iinclude -I../chep_crt/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/matheus/miniconda3/include -c -o getmem.o getmem.c
/home/matheus/miniconda3/envs/root_/bin/x86_64-conda-linux-gnu-ar rv ../../lib/serv.a getmem.o
/home/matheus/miniconda3/envs/root_/bin/x86_64-conda-linux-gnu-ar: creating ../../lib/serv.a
a - getmem.o
ranlib ../../lib/serv.a

* Then there are many lines of construction of the program. In the end, the same thing appears before

#--------------------------------------------------------
# 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.
#---------------------------------------------------------"
 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

Revision history for this message
Alexander Belyaev (alexander.belyaev) said :
#5

Did you do

        make clean
        make

as it tells you to do?

Alexander

On 12/11/2020 21:01, Matheus Pereira Macedo de Sousa wrote:
> Question #693978 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/693978
>
> Status: Answered => Open
>
> Matheus Pereira Macedo de Sousa is still having a problem:
> He tells me he already has it installed on my machine -->
>
> matheus@matheus-pc:~$ sudo apt-get install libx11-dev
> Reading package lists ... Done
> Building dependency tree
> Reading status information ... Ready
> libx11-dev is already the newest version (2:1.6.8-1).
> The main packages were automatically installed and are no longer available:
> cernlib-base cernlib-base-dev cernlib-core cernlib-montecarlo cfortran dzedit geant321-data geant321-doc kuipc kxterm
> libcojets2-dev libcojets2-gfortran libdrm-dev libeurodec1-dev libeurodec1-gfortran libfontconfig1-dev libfreetype6-dev
> libgeant321-2-gfortran libgles1 libglvnd-core-dev libglvnd-dev libgraflib1-gfortran libgrafx11-1-gfortran libherwig59-2-dev
> libherwig59-2-gfortran libice-dev libisajet758-3-dev libisajet758-3-gfortran libkernlib1-dev libkernlib1-gfortran libmathlib2-dev
> libmathlib2-gfortran libmotif-common libmrm4 libopengl0 libpacklib-lesstif1-gfortran libpacklib1-dev libpacklib1-gfortran
> libpawlib-lesstif3-gfortran libpawlib2-gfortran libpdflib804-2-dev libpdflib804-2-gfortran libphotos202-1-gfortran
> libphotos202-dev libphtools2-dev libphtools2-gfortran libsm-dev libuil4 libxbae-dev libxbae4m libxcb-dri2-0-dev libxcb-dri3-dev
> libxcb-glx0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev
> libxm4 libxshmfence-dev montecarlo-base montecarlo-data nypatchy paw paw++ paw-common paw-demos uil uuid-dev x11proto-damage-dev
> x11proto-fixes-dev x11proto-xext-dev x11proto-xf86vidmode-dev
> Use 'sudo apt autoremove' to remove them.
> 0 updated packages, 0 new packages installed, 0 to be removed and 1 not updated.
>
> when i do make -->
>
> ./getFlags
> numerical type Ok
> C compiler detected
> : shared liblary generation OK
> You have empty LX11 parameter that means that
> calchep will be compiled for Blind job only.
> ./getFlags: 639: echo
> If you would like to use CalcHEP in interactive
> mode, please, install the following additional package:
> libX11-devel for Fedora/Scientific, Darwin(MAC)
> libX11-dev for Ubuntu/Debian [old Ubunty]
> libx11-dec for Ubuntu/Debian [new Ubunty]
> xorg-x11-devel for SUSE: not found
> Fortran compiler is detected
> gfortran OK
> FFLAGS OK
> ./sbin/setPath /home/matheus/Downloads/calchep_3.8.5
> chmod 755 mkWORKdir
> make -C c_source
> make[1]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source'
> make -C getmem
> make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/getmem'
> make[2]: Nothing to be done for 'all'.
> make[2]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source/getmem'
> make -C chep_crt
> make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/chep_crt'
> cp ../../lib/serv.a ../../lib/servNoX11.a
> /home/matheus/miniconda3/envs/root_/bin/x86_64-conda-linux-gnu-cc -c -g -std=gnu99 -fPIC -Iinclude -I../getmem/include -I/usr/include -o noxwin/X11_crt0.o noxwin/X11_crt0.c
> ar d ../../lib/servNoX11.a X11_crt0.o
> ar r ../../lib/servNoX11.a noxwin/X11_crt0.o
> ranlib ../../lib/servNoX11.a
> rm noxwin/X11_crt0.o
> make[2]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source/chep_crt'
> make -C service2
> make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/service2'
> /home/matheus/miniconda3/envs/root_/bin/x86_64-conda-linux-gnu-cc -g -std=gnu99 -fPIC -Iinclude -I../../include -I../chep_crt/include -I../getmem/include -o ../../bin/calc main_calc.c ../../lib/serv.a -lm
> make[2]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source/service2'
> make -C polynom
> make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/polynom'
> make[2]: '../../lib/symb.a' is up to date.
> make[2]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source/polynom'
> make -C ntools
> make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/ntools'
> make[2]: Nothing to be done for 'all'.
> make[2]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source/ntools'
> make -C dynamicME
> make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/dynamicME'
> make[2]: Nothing to be done for 'all'.
> make[2]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source/dynamicME'
> make -C plot
> make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/plot'
> make[2]: '../../bin/plot_view' is up to date.
> make[2]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source/plot'
> make -C strfun
> make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/strfun'
> make[2]: Nothing to be done for 'all'.
> make[2]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source/strfun'
> make -C num
> make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/num'
> make[2]: Nothing to be done for 'all'.
> make[2]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source/num'
> make -C tab
> make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/tab'
> make[2]: Nothing to be done for 'all'.
> make[2]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source/tab'
> make -C SLHAplus
> make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/SLHAplus'
> make[2]: Nothing to be done for 'all'.
> make[2]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source/SLHAplus'
> make -C mix_events
> make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/mix_events'
> make[2]: Nothing to be done for 'all'.
> make[2]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source/mix_events'
> make -C symb
> make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/symb'
> make[2]: Nothing to be done for 'all'.
> make[2]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source/symb'
> make[1]: Leaving directory '/home/matheus/Downloads/calchep_3.8.5/c_source'
> #--------------------------------------------------------
> # 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.
> #---------------------------------------------------------"
> 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
>
--
______________________________________________________________________
Prof. Alexander S Belyaev (<email address hidden>)
https://www.hep.phys.soton.ac.uk/content/alexander-belyaev

School of Physics & Astronomy, University of Southampton
Office 5047, SO17 1BJ, TEL: +44 23805 98509, FAX: +44 23805 93910
.....................................................................
Particle Physics Department, Rutherford Appleton Laboratory
Didcot, OX11 0QX, TEL: +44 12354 45562, FAX: +44 12354 46733
.....................................................................
CERN, CH-1211 Geneva 23, Switzerland
Office 40/1-B20, Mailbox: E27910, TEL: +41 2276 71642
______________________________________________________________________

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

Do you have *.h files, for instance, Xlib.h, Xutil.h, keysym.h in

    /usr/include/X11

??

If X11-dev is installed, these files  have to appear  in your computer.
/usr/include  is a standard place for them.

CalcHEP can not find them. This is a reason of error.

Best

    Alexander Pukhov

On 13.11.2020 0:35, Matheus Pereira Macedo de Sousa wrote:
> Question #693978 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/693978
>
> Status: Needs information => Open
>
> Matheus Pereira Macedo de Sousa gave more information on the question:
> * Yes.
>
> * The beginning of the make execution, after I do the make clean is
> this:
>
> matheus@matheus-pc:~/Downloads/calchep_3.8.5$ make
> ./getFlags
> MAKE= make
> Unknown compiler /home/matheus/miniconda3/envs/root_/bin/x86_64-conda-linux-gnu-cc
> UNAME=Linux ???
> numerical type Ok
> C compiler detected
> : shared liblary generation OK
> Trying to detect X11
> search by xmkmf
> fails
> search X11 according to list of possible distinations
> fails
> X11 not detected. CalcHEP will be compiled in Blind mode
> Fortran compiler is detected
> gfortran OK
> FFLAGS OK
> ./sbin/setPath /home/matheus/Downloads/calchep_3.8.5
> chmod 755 mkWORKdir
> make -C c_source
> make[1]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source'
> make -C getmem
> make[2]: Entering directory '/home/matheus/Downloads/calchep_3.8.5/c_source/getmem'
> /home/matheus/miniconda3/envs/root_/bin/x86_64-conda-linux-gnu-cc -g -std=gnu99 -fPIC -Iinclude -I../chep_crt/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/matheus/miniconda3/include -c -o getmem.o getmem.c
> /home/matheus/miniconda3/envs/root_/bin/x86_64-conda-linux-gnu-ar rv ../../lib/serv.a getmem.o
> /home/matheus/miniconda3/envs/root_/bin/x86_64-conda-linux-gnu-ar: creating ../../lib/serv.a
> a - getmem.o
> ranlib ../../lib/serv.a
>
>
> * Then there are many lines of construction of the program. In the end, the same thing appears before
>
> #--------------------------------------------------------
> # 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.
> #---------------------------------------------------------"
> 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
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

Unexpected message
Unknown compiler /home/matheus/miniconda3/envs/root_/bin/x86_64-conda-linux-gnu-cc

What is the result of

make clean
CC=gcc make

Revision history for this message
Matheus Pereira Macedo de Sousa (mpmacedo) said :
#9

oh, I'm sorry, I forgot that I had to go inside the directory to make this command. Now everything is working.
Thank you all

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

  But I do not understand what happens with X11.

If you have /usr/include/X11  directory  with *.h files inside, then all
CalcHEP versions has to work with X11  graphical interface.

Please, explain, which version works, and which does't.

Best

    Alexander Pukhov

On 13.11.2020 17:05, Matheus Pereira Macedo de Sousa wrote:
> Question #693978 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/693978
>
> Status: Open => Solved
>
> Matheus Pereira Macedo de Sousa confirmed that the question is solved:
> oh, I'm sorry, I forgot that I had to go inside the directory to make this command. Now everything is working.
> Thank you all
>

Revision history for this message
Matheus Pereira Macedo de Sousa (mpmacedo) said :
#11

I also don't know what the problem was with the X11, it could be a problem with my machine.
One version that worked for me was 3.8.4. The more modern ones do not seem to have been

Revision history for this message
Alexander Belyaev (alexander.belyaev) said :
#12

Dear Matheus,

lets try understand what is going on.

Manfred, thanks a lot for your help too.

Matheus,
could run the command

locate include/X11

in the terminal and let us know what is the result

Thank you,
Sasha