scons "permission denied" error

I’m trying to build freedcpp package via web interface.
Everything is building ok, but on install i have such error:

+ scons PREFIX=/usr install
scons: Reading SConscript files ...

scons: warning: The Options class is deprecated; use the Variables class instead.
File "/usr/src/packages/BUILD/freedcpp-svn-r097/SConstruct", line 54, in <module>

scons: warning: The BoolOption() function is deprecated; use the BoolVariable() function instead.
File "/usr/src/packages/BUILD/freedcpp-svn-r097/SConstruct", line 59, in <module>

scons: warning: The PathOption() function is deprecated; use the PathVariable() function instead.
File "/usr/src/packages/BUILD/freedcpp-svn-r097/SConstruct", line 62, in <module>
scons: done reading SConscript files.
scons: Building targets ...
scons: *** [/usr/share/freedcpp] /usr/share/freedcpp: Permission denied
scons: building terminated because of errors.
error: Bad exit status from /var/tmp/rpm-tmp.jBJpjO (%install)

When i trying to build and install on my local machine everything is fine.

I tried to google, but failed to succeed :frowning:

Can some one help?

Problem is closed.

It was wrong prefix for install :frowning:

Hi
Which should have been something like;


scons prefix=%{buildroot}%{_prefix} install


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 9 days 10:35, 4 users, load average: 0.23, 0.37, 0.25
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.53