The following warnings occurred:
Warning [2] Trying to access array offset on null - Line: 198 - File: inc/plugins/google_seo.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo.php 198 errorHandler->error_callback
/inc/plugins/google_seo/redirect.php 131 google_seo_tid
/inc/class_plugins.php 142 google_seo_redirect_hook
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Undefined property: DB_MySQLi::$google_seo_query_limit - Line: 232 - File: inc/plugins/google_seo.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo.php 232 errorHandler->error_callback
/inc/plugins/google_seo/redirect.php 131 google_seo_tid
/inc/class_plugins.php 142 google_seo_redirect_hook
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Decrement on type null has no effect, this will change in the next major version of PHP - Line: 232 - File: inc/plugins/google_seo.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo.php 232 errorHandler->error_callback
/inc/plugins/google_seo/redirect.php 131 google_seo_tid
/inc/class_plugins.php 142 google_seo_redirect_hook
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once




[SOLVED] Compilation failure on centOS 7
#1
Hello,

I try to build cuberite on centos 7 but it failed on the cmake step with this error:

Code:
 --- Running cmake... CMake Error: Error in cmake code at /var/games/minecraft/cuberite/CMakeLists.txt:1: Parse error.  Expected a command name, got unquoted argument with text "". -- Configuring incomplete, errors occurred!


I don't know what to do. Please help me, you are my only hope Wink

Thanks in advance.
Reply
Thanks given by:
#2
Hi, welcome to the forums!

I assume you're using the compile.sh script, have you tried manually running cmake? From the cuberite folder, run:

Code:
mkdir Release cd Release cmake -DCMAKE_BUILD_TYPE=RELEASE .. make

(from https://github.com/cuberite/cuberite/blo...reebsd-etc)
Reply
Thanks given by:
#3
Both solutions provide same result
Reply
Thanks given by:
#4
Hm, weird. On my system, CMakeLists has a weird unicode character as the first character, it could be that's what's throwing it off (but it works fine on my Ubuntu system) - maybe try deleting the first line (with nano or something) to get rid of the character.
Reply
Thanks given by:
#5
I remove all the comment section and the error still is here
Reply
Thanks given by:
#6
i found the problem the file aren't unix format so I dos2unix them and it's working thanks for your help
Reply
Thanks given by:
#7
That sounds like a mis-configured git client, normally it should checkout all files using the correct line-end format.
Reply
Thanks given by:
#8
(09-11-2017, 05:39 PM)xoft Wrote: That sounds like a mis-configured git client, normally it should checkout all files using the correct line-end format.

First, sorry for the long wait.

Secondly, the server was new and the git with centos 7 default configuration.
Reply
Thanks given by:
#9
Apparently dos2unix will also remove any UTF-8 BOM.  Maybe that's what cmake is choking on.
Reply
Thanks given by:
#10
(09-19-2017, 01:01 AM)peterbell10 Wrote: Apparently dos2unix will also remove any UTF-8 BOM.  Maybe that's what cmake is choking on.

i don't succeed to configure git to use linux end line format

Edit: Your BOM guess was right it's the real problem. Do you know how to remove it when i git pull ?
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)