Error during compile Godot engine from source code

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Drakeman
:warning: Old Version Published before Godot 3 was released.

Hello, I am trying compile godot engine from source code by this manual:

but when I run command: $ scons platform=x11
I get result:

scons: Reading SConscript files ...
Enabling ALSA
Enabling PulseAudio
AttributeError: 'module' object has no attribute 'can_build':
  File "/home/martin/Projects/godot/SConstruct", line 398:
    if (config.can_build(selected_platform)):