scons noob - "prefix=/" not enough for everything?
Moderator: Forum Moderators
scons noob - "prefix=/" not enough for everything?
used this command:
after that I get an error while running "scons install":
I want everything installed in $HOME/wesnoth-1.7.6 directory. Is there better option than prefix= for that or do I really have to tell where to install binaries (anything else?) separately?
Code: Select all
scons prefix=/home/kristjan/wesnoth-1.7.6 prefsdir=.wesnoth1.7.6
Code: Select all
scons: *** [/var/run/wesnothd] /var/run/wesnothd: Permission denied
scons: building terminated because of errors.
Re: scons noob - "prefix=/" not enough for everything?
I've never used scons, but are Permission Denied leads me to ask.. are you running it as root?
Re: scons noob - "prefix=/" not enough for everything?
If everything was correct in that command, then why would I need root permission to install anything in $HOME?
Even with bindir given separately I still get permission error, so obviously I have missed something important:
---edit---
then (without root permission obviously):
But I am still curios if I did something wrong.
Even with bindir given separately I still get permission error, so obviously I have missed something important:
Code: Select all
scons prefix=/home/kristjan/wesnoth-1.7.6/ bindir=/home/kristjan/wesnoth-1.7.6/ install
...
Mkdir("/var/run/wesnothd")
scons: *** [/var/run/wesnothd] /var/run/wesnothd: Permission denied
scons: building terminated because of errors.
---edit---
Code: Select all
scons --help | grep -B 1 /var/run/wesnothd
fifodir: directory for the wesnothd fifo socket file ( /path/to/fifodir )
default: /var/run/wesnothd
actual: /var/run/wesnothd
Code: Select all
scons prefix=/home/kristjan/wesnoth-1.7.6/ bindir=/home/kristjan/wesnoth-1.7.6/ fifodir=/home/kristjan/wesnoth-1.7.6/wtf_is_fifo install
...
Install file: "wesnothd" as "/home/kristjan/wesnoth-1.7.6/wesnothd"
Mkdir("/home/kristjan/wesnoth-1.7.6/wtf_is_fifo")
Chmod("/home/kristjan/wesnoth-1.7.6/wtf_is_fifo", 0700)
chown : /home/kristjan/wesnoth-1.7.6/wtf_is_fifo
scons: done building targets.
Last edited by Kristjan on October 22nd, 2009, 2:57 am, edited 1 time in total.
Re: scons noob - "prefix=/" not enough for everything?
Because, it is trying to create a directory in /var, which you have to be root to create/delete files/folders in.
/var/run/wesnothd: Permission denied
Code: Select all
Mkdir("/var/run/wesnothd")
scons: *** [/var/run/wesnothd] /var/run/wesnothd: Permission denied
Re: scons noob - "prefix=/" not enough for everything?
I found out why it was trying to create that directory, see my last post.
Re: scons noob - "prefix=/" not enough for everything?
Does it run? What Linux distro are you using?
Re: scons noob - "prefix=/" not enough for everything?
Works fine. Using Ubuntu 9.10, but I doubt that fifodir= not affected by prefix= has anything to do with that. Where is probably a good reason why that is so
- loonycyborg
- Windows Packager
- Posts: 295
- Joined: April 1st, 2008, 4:45 pm
- Location: Russia/Moscow
Re: scons noob - "prefix=/" not enough for everything?
Yes. Because /var/run isn't under /usrKristjan wrote:There is probably a good reason why that is so
fifodir stuff is needed to create FIFO file which can be used to issue commands to wesnoth server without connecting to it with a client.
"meh." - zookeeper