Some problems when compiling the elegant source

Moderators: cyao, soliday

Post Reply
BingLi
Posts: 3
Joined: 27 Oct 2016, 07:18

Some problems when compiling the elegant source

Post by BingLi » 27 Oct 2016, 11:07

Dear experts and users,

I try to install the elegant following the guide 'Guide to Installing SDDS and AOP Simulation Software on Linux Computers'. When I compiling the elegant source (step 7, cd /oag/apps/configure and type make), an error is following:

../configure/CONFIG_APPS:9: /configure/CONFIG: No such file or directory
../configure/RULES:3: /configure/RULES: No such file or directory
make: *** No rule to make target `/configure/RULES'. Stop.

I think that the directory is wrong in the file CONFIG_APPS and RULES. So, I modify them.

Line 9 of CONFIG_APPS file in /oag/apps/configure
CONFIG=$(EPICS_BASE)/configure --> CONFIG=/epics/base/configure
line 3 of RULES file in /oag/apps/configure
include $(EPICS_BASE)/configure/RULES --> include /epics/base/configure/RULES

Then I type make, the error message is

perl /bin/linux-x86_64/makeMakefile.pl O.linux-x86_64 ../..
Can't open perl script "/bin/linux-x86_64/makeMakefile.pl": No such file or directory.

The system is CentOS Linux 7, x86_64. I am the new one to the Linux.
I don't how to solve this problem. Please help me!

Thanks!
Bing

soliday
Posts: 390
Joined: 28 May 2008, 09:15

Re: Some problems when compiling the elegant source

Post by soliday » 27 Oct 2016, 13:27

I can get that exact error message if I don't have EPICS_BASE set in the RELEASE file. Make sure EPICS_BASE is set to the directory that you installed EPICS/Base

BingLi
Posts: 3
Joined: 27 Oct 2016, 07:18

Re: Some problems when compiling the elegant source

Post by BingLi » 27 Oct 2016, 17:04

Thank you so much! The installation was done. :lol: :lol:

Bing

BingLi
Posts: 3
Joined: 27 Oct 2016, 07:18

Re: Some problems when compiling the elegant source

Post by BingLi » 29 Nov 2016, 14:03

Hi soliday,

Today, I help my friend to install elegant. When I change the directory to oag/apps/src/elegant/sddsbrightness and type make,
an error (as follews):

Code: Select all

[bing@localhost sddsbrightness]$ make
make -C O.linux-x86_64 -f ../Makefile TOP=../../../.. \
    T_A=linux-x86_64 install
make[1]: Entering directory '/home/bing/oag/apps/src/elegant/sddsbrightness/O.linux-x86_64'
../Makefile:176: warning: overriding recipe for target 'sddsbrightness'
/home/bing/epics/base/configure/RULES_BUILD:192: warning: ignoring old recipe for target 'sddsbrightness'
../Makefile:179: warning: overriding recipe for target 'sddsurgent'
/home/bing/epics/base/configure/RULES_BUILD:192: warning: ignoring old recipe for target 'sddsurgent'
../Makefile:182: warning: overriding recipe for target 'sddsfluxcurve'
/home/bing/epics/base/configure/RULES_BUILD:192: warning: ignoring old recipe for target 'sddsfluxcurve'
make[1]: *** No rule to make target '../../../../lib/linux-x86_64/libxrl.a', needed by 'sddsurgent'.  Stop.
make[1]: Leaving directory '/home/bing/oag/apps/src/elegant/sddsbrightness/O.linux-x86_64'
/home/bing/epics/base/configure/RULES_ARCHS:61: recipe for target 'install.linux-x86_64' failed
How to solve this problem?

Thanks!

Bing

soliday
Posts: 390
Joined: 28 May 2008, 09:15

Re: Some problems when compiling the elegant source

Post by soliday » 30 Nov 2016, 11:21

Type make in the oag/apps/src/xraylib directory to build the missing libxrl.a library.

Post Reply