* Can't ./configure latest git
@ 2017-04-04 2:18 Duncan X. Simpson
2017-04-04 2:25 ` Duncan X. Simpson
0 siblings, 1 reply; 7+ messages in thread
From: Duncan X. Simpson @ 2017-04-04 2:18 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 660 bytes --]
I just cloned Xen from git, but it won't configure. I have both versions of
Python installed, but it tries to use 3 to run 2 code:
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
File "<string>", line 1
import distutils.sysconfig; print
distutils.sysconfig.get_config_var("VERSION")
^
SyntaxError: invalid syntax
checking for python-config... /usr/bin/python-config
checking Python.h usability... yes
checking Python.h presence... yes
checking for Python.h... yes
How do I fix this?
--
Duncan X. Simpson, K7DXS
[-- Attachment #1.2: Type: text/html, Size: 1593 bytes --]
[-- Attachment #2: Type: text/plain, Size: 127 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Can't ./configure latest git
2017-04-04 2:18 Can't ./configure latest git Duncan X. Simpson
@ 2017-04-04 2:25 ` Duncan X. Simpson
2017-04-04 2:49 ` Duncan X. Simpson
2017-04-04 15:06 ` Anthony PERARD
0 siblings, 2 replies; 7+ messages in thread
From: Duncan X. Simpson @ 2017-04-04 2:25 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 1307 bytes --]
Worked around with the following:
~git/xen master ± git diff
diff --git a/tools/configure b/tools/configure
index 7a57e6562d..874498ad80 100755
--- a/tools/configure
+++ b/tools/configure
@@ -6859,7 +6859,7 @@ if echo "$PYTHON" | grep -q "^/"; then :
PYTHON=`basename $PYTHONPATH`
elif test -z "$PYTHON"; then :
- PYTHON="python"
+ PYTHON="python2"
else
as_fn_error $? "PYTHON specified, but is not an absolute path" "$LINENO"
5
fi
Not sure if this is ideal.
On Mon, Apr 3, 2017 at 7:18 PM Duncan X. Simpson <virtualdxs@gmail.com>
wrote:
I just cloned Xen from git, but it won't configure. I have both versions of
Python installed, but it tries to use 3 to run 2 code:
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
File "<string>", line 1
import distutils.sysconfig; print
distutils.sysconfig.get_config_var("VERSION")
^
SyntaxError: invalid syntax
checking for python-config... /usr/bin/python-config
checking Python.h usability... yes
checking Python.h presence... yes
checking for Python.h... yes
How do I fix this?
--
Duncan X. Simpson, K7DXS
--
Duncan X. Simpson, K7DXS
[-- Attachment #1.2: Type: text/html, Size: 4403 bytes --]
[-- Attachment #2: Type: text/plain, Size: 127 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: Can't ./configure latest git
2017-04-04 2:25 ` Duncan X. Simpson
@ 2017-04-04 2:49 ` Duncan X. Simpson
2017-04-04 15:06 ` Anthony PERARD
1 sibling, 0 replies; 7+ messages in thread
From: Duncan X. Simpson @ 2017-04-04 2:49 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 1746 bytes --]
In addition, I had to grep -r -l '$(PYTHON)' * | xargs sed -i
's!$(PYTHON)!/usr/bin/python2!g' because I couldn't figure out where
$(PYTHON) was set. At first I thought it was tools/get-fields.sh but
setting it there didn't fix it.
On Mon, Apr 3, 2017 at 7:25 PM Duncan X. Simpson <virtualdxs@gmail.com>
wrote:
> Worked around with the following:
>
> ~git/xen master ± git diff
> diff --git a/tools/configure b/tools/configure
> index 7a57e6562d..874498ad80 100755
> --- a/tools/configure
> +++ b/tools/configure
> @@ -6859,7 +6859,7 @@ if echo "$PYTHON" | grep -q "^/"; then :
> PYTHON=`basename $PYTHONPATH`
>
> elif test -z "$PYTHON"; then :
> - PYTHON="python"
> + PYTHON="python2"
> else
> as_fn_error $? "PYTHON specified, but is not an absolute path"
> "$LINENO" 5
> fi
>
> Not sure if this is ideal.
>
> On Mon, Apr 3, 2017 at 7:18 PM Duncan X. Simpson <virtualdxs@gmail.com>
> wrote:
>
> I just cloned Xen from git, but it won't configure. I have both versions
> of Python installed, but it tries to use 3 to run 2 code:
>
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> File "<string>", line 1
> import distutils.sysconfig; print
> distutils.sysconfig.get_config_var("VERSION")
> ^
> SyntaxError: invalid syntax
> checking for python-config... /usr/bin/python-config
> checking Python.h usability... yes
> checking Python.h presence... yes
> checking for Python.h... yes
>
> How do I fix this?
> --
>
> Duncan X. Simpson, K7DXS
>
> --
>
> Duncan X. Simpson, K7DXS
>
--
Duncan X. Simpson, K7DXS
[-- Attachment #1.2: Type: text/html, Size: 5390 bytes --]
[-- Attachment #2: Type: text/plain, Size: 127 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Can't ./configure latest git
2017-04-04 2:25 ` Duncan X. Simpson
2017-04-04 2:49 ` Duncan X. Simpson
@ 2017-04-04 15:06 ` Anthony PERARD
2017-04-04 15:09 ` Duncan X. Simpson
1 sibling, 1 reply; 7+ messages in thread
From: Anthony PERARD @ 2017-04-04 15:06 UTC (permalink / raw)
To: Duncan X. Simpson; +Cc: xen-devel
On Tue, Apr 04, 2017 at 02:25:06AM +0000, Duncan X. Simpson wrote:
> Worked around with the following:
>
> ~git/xen master ± git diff
> diff --git a/tools/configure b/tools/configure
> index 7a57e6562d..874498ad80 100755
> --- a/tools/configure
> +++ b/tools/configure
> @@ -6859,7 +6859,7 @@ if echo "$PYTHON" | grep -q "^/"; then :
> PYTHON=`basename $PYTHONPATH`
>
> elif test -z "$PYTHON"; then :
> - PYTHON="python"
> + PYTHON="python2"
> else
> as_fn_error $? "PYTHON specified, but is not an absolute path" "$LINENO"
> 5
> fi
>
> Not sure if this is ideal.
Or better:
./configure PYTHON=/usr/bin/python2
make PYTHON=/usr/bin/python2
--
Anthony PERARD
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Can't ./configure latest git
2017-04-04 15:06 ` Anthony PERARD
@ 2017-04-04 15:09 ` Duncan X. Simpson
2017-04-04 15:30 ` Anthony PERARD
0 siblings, 1 reply; 7+ messages in thread
From: Duncan X. Simpson @ 2017-04-04 15:09 UTC (permalink / raw)
To: Anthony PERARD; +Cc: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 1103 bytes --]
Ah, that makes more sense. Another problem I had when trying to compile was
I got a permission denied error on xen-setup, which I fixed by making as
root (in a chroot of course). Was there a better way to do that?
On Tue, Apr 4, 2017, 08:06 Anthony PERARD <anthony.perard@citrix.com> wrote:
> On Tue, Apr 04, 2017 at 02:25:06AM +0000, Duncan X. Simpson wrote:
> > Worked around with the following:
> >
> > ~git/xen master ± git diff
> > diff --git a/tools/configure b/tools/configure
> > index 7a57e6562d..874498ad80 100755
> > --- a/tools/configure
> > +++ b/tools/configure
> > @@ -6859,7 +6859,7 @@ if echo "$PYTHON" | grep -q "^/"; then :
> > PYTHON=`basename $PYTHONPATH`
> >
> > elif test -z "$PYTHON"; then :
> > - PYTHON="python"
> > + PYTHON="python2"
> > else
> > as_fn_error $? "PYTHON specified, but is not an absolute path"
> "$LINENO"
> > 5
> > fi
> >
> > Not sure if this is ideal.
>
> Or better:
> ./configure PYTHON=/usr/bin/python2
> make PYTHON=/usr/bin/python2
>
> --
> Anthony PERARD
>
--
Duncan X. Simpson, K7DXS
[-- Attachment #1.2: Type: text/html, Size: 2115 bytes --]
[-- Attachment #2: Type: text/plain, Size: 127 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Can't ./configure latest git
2017-04-04 15:09 ` Duncan X. Simpson
@ 2017-04-04 15:30 ` Anthony PERARD
2017-04-04 17:32 ` Duncan X. Simpson
0 siblings, 1 reply; 7+ messages in thread
From: Anthony PERARD @ 2017-04-04 15:30 UTC (permalink / raw)
To: Duncan X. Simpson; +Cc: xen-devel
On Tue, Apr 04, 2017 at 03:09:48PM +0000, Duncan X. Simpson wrote:
> Ah, that makes more sense. Another problem I had when trying to compile was
> I got a permission denied error on xen-setup, which I fixed by making as
> root (in a chroot of course). Was there a better way to do that?
This sound like an weird issue in your environnement. And I don't see
how been root would affect permission of xen-setup. Is this
tools/qemu-xen-traditional-dir/xen-setup ?
What is the error message?
--
Anthony PERARD
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Can't ./configure latest git
2017-04-04 15:30 ` Anthony PERARD
@ 2017-04-04 17:32 ` Duncan X. Simpson
0 siblings, 0 replies; 7+ messages in thread
From: Duncan X. Simpson @ 2017-04-04 17:32 UTC (permalink / raw)
To: Anthony PERARD; +Cc: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 711 bytes --]
I just realized I misread the error message. I fixed the environment and
got it working.
On Tue, Apr 4, 2017 at 8:30 AM Anthony PERARD <anthony.perard@citrix.com>
wrote:
On Tue, Apr 04, 2017 at 03:09:48PM +0000, Duncan X. Simpson wrote:
> Ah, that makes more sense. Another problem I had when trying to compile
was
> I got a permission denied error on xen-setup, which I fixed by making as
> root (in a chroot of course). Was there a better way to do that?
This sound like an weird issue in your environnement. And I don't see
how been root would affect permission of xen-setup. Is this
tools/qemu-xen-traditional-dir/xen-setup ?
What is the error message?
--
Anthony PERARD
--
Duncan X. Simpson, K7DXS
[-- Attachment #1.2: Type: text/html, Size: 1497 bytes --]
[-- Attachment #2: Type: text/plain, Size: 127 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-04-04 17:32 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-04 2:18 Can't ./configure latest git Duncan X. Simpson
2017-04-04 2:25 ` Duncan X. Simpson
2017-04-04 2:49 ` Duncan X. Simpson
2017-04-04 15:06 ` Anthony PERARD
2017-04-04 15:09 ` Duncan X. Simpson
2017-04-04 15:30 ` Anthony PERARD
2017-04-04 17:32 ` Duncan X. Simpson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.