Проблема с загрузкой checkres

Обсуждение вопросов, связанных с системой проведения турниров ejudge.
Post Reply
AndreyP
Posts:16
Joined:03 October 2011, 12:54
Проблема с загрузкой checkres

Post by AndreyP » 16 September 2012, 22:12

Установил ejudge на Ubuntu 12.04.1 и пропатчил ядро 3.4.10. Все запустил, но на тестовом примере не хочет запускать cmp_int.
Отправка файла a_g++.cpp из ~/judges/000001/problems/A/all_solutions

Code: Select all

--- Checker output ---
/home/ejudge/inst-ejudge/libexec/ejudge/checkers/cmp_int: error while loading shared libraries: libchecker.so: cannot open shared object file: No such file or directory

run: checker exited with code 127
[/size]
Подскажите как решить проблему.

cher
Posts:1153
Joined:13 March 2004, 17:00
Contact:

Re: Проблема с загрузкой checkres

Post by cher » 18 September 2012, 12:15

Что выводит команда

Code: Select all

ldd /home/ejudge/inst-ejudge/libexec/ejudge/checkers/cmp_int

AndreyP
Posts:16
Joined:03 October 2011, 12:54

Re: Проблема с загрузкой checkres

Post by AndreyP » 18 September 2012, 15:32

Результат команды:

Code: Select all

ejudge@ejudge-2012:~$ ldd /home/ejudge/inst-ejudge/libexec/ejudge/checkers/cmp_int
        linux-gate.so.1 =>  (0xb7744000)
        libchecker.so => not found
        libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7592000)
        /lib/ld-linux.so.2 (0xb7745000)
[/size]
но данный файл в системе присутствует

Code: Select all

ejudge@ejudge-2012:~/inst-ejudge/lib$ ls -ao
total 576
drwxrwxr-x 2 ejudge   4096 Sep 16 16:17 .
drwxr-xr-x 7 ejudge   4096 Sep 16 16:15 ..
-rw-r--r-- 1 ejudge 391784 Sep 16 16:17 libchecker.a
-rwxr-xr-x 1 ejudge 187437 Sep 16 16:17 libchecker.so
[/size]

cher
Posts:1153
Joined:13 March 2004, 17:00
Contact:

Re: Проблема с загрузкой checkres

Post by cher » 18 September 2012, 16:08

В качестве быстрого решения проблемы можно скопировать libchecker.so в /usr/lib, но вообще, надо посмотреть вывод configure и make

AndreyP
Posts:16
Joined:03 October 2011, 12:54

Re: Проблема с загрузкой checkres

Post by AndreyP » 18 September 2012, 18:57

Команда конфиг configure запускалась с ключами:

Code: Select all

user=ejudge
exec ./configure --prefix=/home/$user/inst-ejudge --enable-charset=utf-8 --enable-ajax --enable-contests-home-dir=/home/$user/judges --with-httpd-htdocs-dir=/var/www/ --with-httpd-cgi-bin-dir=/usr/lib/cgi-bin  --enable-hidden-server-bins --enable-local-dir=/var/lib/ejudge
[/size]
Результат работы:

Code: Select all

ejudge@ejudge-2012:~/ejudge$ ./my_configure.sh
+ user=ejudge
+ exec ./configure --prefix=/home/ejudge/inst-ejudge --enable-charset=utf-8 --enable-ajax --enable-contests-home-dir=/home/ejudge/judges --with-httpd-htdocs-dir=/var/www/ --with-httpd-cgi-bin-dir=/usr/lib/cgi-bin --enable-hidden-server-bins --enable-local-dir=/var/lib/ejudge
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking for grep that handles long lines and -e... /bin/grep
checking for a sed that does not truncate output... /bin/sed
checking whether ln -s works... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for bison... bison -y
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking whether backslash-a works in strings... yes
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking for C/C++ restrict keyword... __restrict
checking for working volatile... yes
checking for inline... inline
checking whether char is unsigned... no
checking for long double with more range or precision than double... yes
checking for preprocessor stringizing operator... yes
checking for function prototypes... yes
checking for arch type... unix
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking for strnlen... yes
checking for open_memstream... yes
checking for fmemopen... yes
checking for truncate... yes
checking for setsid... yes
checking for pselect... yes
checking for ferror_unlocked... yes
checking for fgets_unlocked... yes
checking for iconv in -liconv... no
checking for libiconv in -liconv... no
checking that iconv requires const qualifier... no
checking SO_PASSCRED flag... yes
checking SIOCINQ flag... yes
checking F_NOTIFY flag... yes
checking expat.h usability... yes
checking expat.h presence... yes
checking for expat.h... yes
checking for XML_ExpatVersionInfo in -lexpat... yes
checking that version of the expat library >= 1.95... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for compressBound in -lz... yes
checking that version of zlib >= 1.2... yes
checking for gettext in -lintl... no
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking zip.h usability... no
checking zip.h presence... no
checking for zip.h... no
checking for zip_open in -lzip... no
checking curl/curl.h usability... no
checking curl/curl.h presence... no
checking for curl/curl.h... no
checking for curl_easy_init in -lcurl... no
checking uuid/uuid.h usability... no
checking uuid/uuid.h presence... no
checking for uuid/uuid.h... no
checking for uuid_parse in -luuid... no
checking for sys/capability.h... no
checking for new secure execution interface in the running kernel... supported
checking for mysql library... version "5.5.24"
checking for mysql compilation flags ... ok
checking for mysql.h... yes
checking for mysql_real_connect in -lmysqlclient... yes
checking for annoying gcc warnings... yes
checking for -Wno-pointer-sign... yes
checking for long long type... yes
checking for __int64 type... no
checking for -m32 support... yes
checking for -m64 support... no
checking for iconv... iconv
checking for xgettext... xgettext
checking for msgmerge... msgmerge
checking for msgfmt... msgfmt
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating extra/Makefile
config.status: creating extra/captest/Makefile
config.status: creating checkers/Makefile
config.status: creating scripts/Makefile
config.status: creating ejudge-config.v
config.status: creating scripts/festival
config.status: creating plugins/mysql-common/Makefile
config.status: creating plugins/mysql-userlist/Makefile
config.status: creating plugins/mysql-clardb/Makefile
config.status: creating plugins/mysql-rundb/Makefile
config.status: creating python/Makefile
config.status: creating python/streamio/Makefile
config.status: creating style/ejudge-upgrade-web
config.status: creating config.h
[/size]
Команда make:
make.log -- make.log
make.log

cher
Posts:1153
Joined:13 March 2004, 17:00
Contact:

Re: Проблема с загрузкой checkres

Post by cher » 19 September 2012, 14:54

В этом логе нет сборки libchecker и проверяющих программ

AndreyP
Posts:16
Joined:03 October 2011, 12:54

Re: Проблема с загрузкой checkres

Post by AndreyP » 19 September 2012, 19:23


Post Reply