Jump to content
  • 0

Error when Compiling Source Code (CentOS)


Question

Posted

Was following the CentOS guide, but when I get to the Compiling Source Code part (https://rathena.org/wiki/Installation_(CentOS)#Compile_Source_Code), the "cd trunk" command returns the following error:

 

 

[root@ragnarok sql-files]# cd trunk

-bash: cd: trunk: No such file or directory

That is, "trunk" directory doesn't exists there. Did I do something wrong, or should I've created "trunk" directory myself?

P.S.: I tried it twice, and got stuck on this error both times. Am I missing some instruction?

3 answers to this question

Recommended Posts

  • 0
Posted (edited)

Use `cd rAthena` or `cd ~/rAthena` instead. The guide is outdated.

 

Is there an updated guide?

Oh, and I'm getting this now:

 

 

[rathenaTeste@ragnarok rAthena]$ ./configure

checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/rathenaTeste/rAthena':
configure: error: C compiler cannot create executables
See `config.log' for more details
 
[spoiler=config.log]This file contains any messages produced by compilers while

running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was

generated by GNU Autoconf 2.69. Invocation command line was

$ ./configure

## --------- ##

## Platform. ##

## --------- ##

hostname = ragnarok

uname -m = i686

uname -r = 2.6.32-042stab113.11

uname -s = Linux

uname -v = #1 SMP Fri Dec 18 17:32:04 MSK 2015

/usr/bin/uname -p = unknown

/bin/uname -X = unknown

/bin/arch = i686

/usr/bin/arch -k = unknown

/usr/convex/getsysinfo = unknown

/usr/bin/hostinfo = unknown

/bin/machine = unknown

/usr/bin/oslevel = unknown

/bin/universe = unknown

PATH: /usr/local/bin

PATH: /bin

PATH: /usr/bin

PATH: /usr/local/sbin

PATH: /usr/sbin

PATH: /sbin

PATH: /home/rathenaTeste/bin

## ----------- ##

## Core tests. ##

## ----------- ##

configure:2229: checking for gcc

configure:2245: found /usr/local/bin/gcc

configure:2256: result: gcc

configure:2485: checking for C compiler version

configure:2494: gcc --version >&5

gcc (GCC) 6.1.0

Copyright © 2016 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2505: $? = 0

configure:2494: gcc -v >&5

Using built-in specs.

COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/i686-pc-linux-gnu/6.1.0/lto-wrapper

Target: i686-pc-linux-gnu

Configured with: ../gcc_6_1_0_release/configure

Thread model: posix

gcc version 6.1.0 (GCC)

configure:2505: $? = 0

configure:2494: gcc -V >&5

gcc: error: unrecognized command line option '-V'

gcc: fatal error: no input files

compilation terminated.

configure:2505: $? = 1

configure:2494: gcc -qversion >&5

gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?

gcc: fatal error: no input files

compilation terminated.

configure:2505: $? = 1

configure:2525: checking whether the C compiler works

configure:2547: gcc conftest.c >&5

/usr/bin/ld: unrecognized option '-plugin'

/usr/bin/ld: use the --help option for usage information

collect2: error: ld returned 1 exit status

configure:2551: $? = 1

configure:2589: result: no

configure: failed program was:

| /* confdefs.h */

| #define PACKAGE_NAME ""

| #define PACKAGE_TARNAME ""

| #define PACKAGE_VERSION ""

| #define PACKAGE_STRING ""

| #define PACKAGE_BUGREPORT ""

| #define PACKAGE_URL ""

| /* end confdefs.h. */

|

| int

| main ()

| {

|

| ;

| return 0;

| }

configure:2594: error: in `/home/rathenaTeste/rAthena':

configure:2596: error: C compiler cannot create executables

See `config.log' for more details

## ---------------- ##

## Cache variables. ##

## ---------------- ##

ac_cv_env_CC_set=

ac_cv_env_CC_value=

ac_cv_env_CFLAGS_set=

ac_cv_env_CFLAGS_value=

ac_cv_env_CPPFLAGS_set=

ac_cv_env_CPPFLAGS_value=

ac_cv_env_CPP_set=

ac_cv_env_CPP_value=

ac_cv_env_LDFLAGS_set=

ac_cv_env_LDFLAGS_value=

ac_cv_env_LIBS_set=

ac_cv_env_LIBS_value=

ac_cv_env_build_alias_set=

ac_cv_env_build_alias_value=

ac_cv_env_host_alias_set=

ac_cv_env_host_alias_value=

ac_cv_env_target_alias_set=

ac_cv_env_target_alias_value=

ac_cv_prog_ac_ct_CC=gcc

## ----------------- ##

## Output variables. ##

## ----------------- ##

AR=''

CC='gcc'

CFLAGS=''

CFLAGS_AR=''

CPP=''

CPPFLAGS=''

DEFS=''

DLLEXT=''

ECHO_C=''

ECHO_N='-n'

ECHO_T=''

EGREP=''

EXEEXT=''

GREP=''

HAVE_MYSQL=''

HAVE_PCRE=''

LDFLAGS=''

LIBOBJS=''

LIBS=''

LTLIBOBJS=''

MYSQL_CFLAGS=''

MYSQL_CONFIG_HOME=''

MYSQL_LIBS=''

MYSQL_VERSION=''

OBJEXT=''

OCHR=''

OLOG=''

OMAP=''

PACKAGE_BUGREPORT=''

PACKAGE_NAME=''

PACKAGE_STRING=''

PACKAGE_TARNAME=''

PACKAGE_URL=''

PACKAGE_VERSION=''

PATH_SEPARATOR=':'

PCRE_CFLAGS=''

PCRE_LIBS=''

PCRE_VERSION=''

SET_MAKE=''

SHELL='/bin/sh'

SOFLAGS=''

WITH_PLUGINS=''

ac_ct_CC='gcc'

bindir='${exec_prefix}/bin'

build_alias=''

datadir='${datarootdir}'

datarootdir='${prefix}/share'

docdir='${datarootdir}/doc/${PACKAGE}'

dvidir='${docdir}'

exec_prefix='NONE'

host_alias=''

htmldir='${docdir}'

includedir='${prefix}/include'

infodir='${datarootdir}/info'

libdir='${exec_prefix}/lib'

libexecdir='${exec_prefix}/libexec'

localedir='${datarootdir}/locale'

localstatedir='${prefix}/var'

mandir='${datarootdir}/man'

oldincludedir='/usr/include'

pdfdir='${docdir}'

prefix='NONE'

program_transform_name='s,x,x,'

psdir='${docdir}'

sbindir='${exec_prefix}/sbin'

sharedstatedir='${prefix}/com'

sysconfdir='${prefix}/etc'

target_alias=''

## ----------- ##

## confdefs.h. ##

## ----------- ##

/* confdefs.h */

#define PACKAGE_NAME ""

#define PACKAGE_TARNAME ""

#define PACKAGE_VERSION ""

#define PACKAGE_STRING ""

#define PACKAGE_BUGREPORT ""

#define PACKAGE_URL ""

configure: exit 77

Edited by Ga_Chittolina
  • 0
Posted

 

Use `cd rAthena` or `cd ~/rAthena` instead. The guide is outdated.

 

Is there an updated guide?

Oh, and I'm getting this now:

 

 

[rathenaTeste@ragnarok rAthena]$ ./configure

checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/rathenaTeste/rAthena':
configure: error: C compiler cannot create executables
See `config.log' for more details
 
[spoiler=config.log]This file contains any messages produced by compilers while

running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was

generated by GNU Autoconf 2.69. Invocation command line was

$ ./configure

## --------- ##

## Platform. ##

## --------- ##

hostname = ragnarok

uname -m = i686

uname -r = 2.6.32-042stab113.11

uname -s = Linux

uname -v = #1 SMP Fri Dec 18 17:32:04 MSK 2015

/usr/bin/uname -p = unknown

/bin/uname -X = unknown

/bin/arch = i686

/usr/bin/arch -k = unknown

/usr/convex/getsysinfo = unknown

/usr/bin/hostinfo = unknown

/bin/machine = unknown

/usr/bin/oslevel = unknown

/bin/universe = unknown

PATH: /usr/local/bin

PATH: /bin

PATH: /usr/bin

PATH: /usr/local/sbin

PATH: /usr/sbin

PATH: /sbin

PATH: /home/rathenaTeste/bin

## ----------- ##

## Core tests. ##

## ----------- ##

configure:2229: checking for gcc

configure:2245: found /usr/local/bin/gcc

configure:2256: result: gcc

configure:2485: checking for C compiler version

configure:2494: gcc --version >&5

gcc (GCC) 6.1.0

Copyright © 2016 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2505: $? = 0

configure:2494: gcc -v >&5

Using built-in specs.

COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/i686-pc-linux-gnu/6.1.0/lto-wrapper

Target: i686-pc-linux-gnu

Configured with: ../gcc_6_1_0_release/configure

Thread model: posix

gcc version 6.1.0 (GCC)

configure:2505: $? = 0

configure:2494: gcc -V >&5

gcc: error: unrecognized command line option '-V'

gcc: fatal error: no input files

compilation terminated.

configure:2505: $? = 1

configure:2494: gcc -qversion >&5

gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?

gcc: fatal error: no input files

compilation terminated.

configure:2505: $? = 1

configure:2525: checking whether the C compiler works

configure:2547: gcc conftest.c >&5

/usr/bin/ld: unrecognized option '-plugin'

/usr/bin/ld: use the --help option for usage information

collect2: error: ld returned 1 exit status

configure:2551: $? = 1

configure:2589: result: no

configure: failed program was:

| /* confdefs.h */

| #define PACKAGE_NAME ""

| #define PACKAGE_TARNAME ""

| #define PACKAGE_VERSION ""

| #define PACKAGE_STRING ""

| #define PACKAGE_BUGREPORT ""

| #define PACKAGE_URL ""

| /* end confdefs.h. */

|

| int

| main ()

| {

|

| ;

| return 0;

| }

configure:2594: error: in `/home/rathenaTeste/rAthena':

configure:2596: error: C compiler cannot create executables

See `config.log' for more details

## ---------------- ##

## Cache variables. ##

## ---------------- ##

ac_cv_env_CC_set=

ac_cv_env_CC_value=

ac_cv_env_CFLAGS_set=

ac_cv_env_CFLAGS_value=

ac_cv_env_CPPFLAGS_set=

ac_cv_env_CPPFLAGS_value=

ac_cv_env_CPP_set=

ac_cv_env_CPP_value=

ac_cv_env_LDFLAGS_set=

ac_cv_env_LDFLAGS_value=

ac_cv_env_LIBS_set=

ac_cv_env_LIBS_value=

ac_cv_env_build_alias_set=

ac_cv_env_build_alias_value=

ac_cv_env_host_alias_set=

ac_cv_env_host_alias_value=

ac_cv_env_target_alias_set=

ac_cv_env_target_alias_value=

ac_cv_prog_ac_ct_CC=gcc

## ----------------- ##

## Output variables. ##

## ----------------- ##

AR=''

CC='gcc'

CFLAGS=''

CFLAGS_AR=''

CPP=''

CPPFLAGS=''

DEFS=''

DLLEXT=''

ECHO_C=''

ECHO_N='-n'

ECHO_T=''

EGREP=''

EXEEXT=''

GREP=''

HAVE_MYSQL=''

HAVE_PCRE=''

LDFLAGS=''

LIBOBJS=''

LIBS=''

LTLIBOBJS=''

MYSQL_CFLAGS=''

MYSQL_CONFIG_HOME=''

MYSQL_LIBS=''

MYSQL_VERSION=''

OBJEXT=''

OCHR=''

OLOG=''

OMAP=''

PACKAGE_BUGREPORT=''

PACKAGE_NAME=''

PACKAGE_STRING=''

PACKAGE_TARNAME=''

PACKAGE_URL=''

PACKAGE_VERSION=''

PATH_SEPARATOR=':'

PCRE_CFLAGS=''

PCRE_LIBS=''

PCRE_VERSION=''

SET_MAKE=''

SHELL='/bin/sh'

SOFLAGS=''

WITH_PLUGINS=''

ac_ct_CC='gcc'

bindir='${exec_prefix}/bin'

build_alias=''

datadir='${datarootdir}'

datarootdir='${prefix}/share'

docdir='${datarootdir}/doc/${PACKAGE}'

dvidir='${docdir}'

exec_prefix='NONE'

host_alias=''

htmldir='${docdir}'

includedir='${prefix}/include'

infodir='${datarootdir}/info'

libdir='${exec_prefix}/lib'

libexecdir='${exec_prefix}/libexec'

localedir='${datarootdir}/locale'

localstatedir='${prefix}/var'

mandir='${datarootdir}/man'

oldincludedir='/usr/include'

pdfdir='${docdir}'

prefix='NONE'

program_transform_name='s,x,x,'

psdir='${docdir}'

sbindir='${exec_prefix}/sbin'

sharedstatedir='${prefix}/com'

sysconfdir='${prefix}/etc'

target_alias=''

## ----------- ##

## confdefs.h. ##

## ----------- ##

/* confdefs.h */

#define PACKAGE_NAME ""

#define PACKAGE_TARNAME ""

#define PACKAGE_VERSION ""

#define PACKAGE_STRING ""

#define PACKAGE_BUGREPORT ""

#define PACKAGE_URL ""

configure: exit 77

 

 

 

try chmod a+x configure

 
then ./configure

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...