由于单声道依赖,xsp配置失败,我尝试了所有建议的修复都失败了

时间:2015-11-05 03:17:59

标签: python mono sudo fabric xsp

我正在安装xsp ver 3.0.11到Fabric上的amazon linux但它无法正常工作。

结构代码是:

with cd("/opt/%s" %(MONO_VERSION)):
    sudo("git clone https://github.com/mono/xsp")
    with cd("/opt/%s/xsp" %(MONO_VERSION)):
        sudo("git checkout %s" %(XSP_VER))
        sudo("export PKG_CONFIG_PATH=/usr/lib/pkgconfig")
        sudo("./autogen.sh --prefix=/usr")
        sudo("make")
        sudo("make install")

它给了我这个错误:

[52.192.80.38] sudo: export PKG_CONFIG_PATH=/usr/lib/pkgconfig
[52.192.80.38] sudo: ./autogen.sh --prefix=/usr
[52.192.80.38] out: Running aclocal -I build/m4/shamrock -I build/m4/shave ...
[52.192.80.38] out: Running autoconf ...
[52.192.80.38] out: Running automake --gnu --add-missing --force --copy ...
[52.192.80.38] out: Running ./configure --enable-maintainer-mode --prefix=/usr ...
[52.192.80.38] out: checking build system type... x86_64-unknown-linux-gnu
[52.192.80.38] out: checking host system type... x86_64-unknown-linux-gnu
[52.192.80.38] out: checking target system type... x86_64-unknown-linux-gnu
[52.192.80.38] out: checking for a BSD-compatible install... /usr/bin/install -c
[52.192.80.38] out: checking whether build environment is sane... yes
[52.192.80.38] out: checking for a thread-safe mkdir -p... /bin/mkdir -p
[52.192.80.38] out: checking for gawk... gawk
[52.192.80.38] out: checking whether make sets $(MAKE)... yes
[52.192.80.38] out: checking whether make supports nested variables... yes
[52.192.80.38] out: checking whether to enable maintainer-specific portions of Makefiles... yes
[52.192.80.38] out: checking for gawk... (cached) gawk
[52.192.80.38] out: checking for pkg-config... /usr/bin/pkg-config
[52.192.80.38] out: checking pkg-config is at least version 0.9.0... yes
[52.192.80.38] out: checking for MONO_MODULE... no
[52.192.80.38] out: configure: error: Package requirements (mono >= 2.10.0) were not met:
[52.192.80.38] out: 
[52.192.80.38] out: No package 'mono' found
[52.192.80.38] out: 
[52.192.80.38] out: Consider adjusting the PKG_CONFIG_PATH environment variable if you
[52.192.80.38] out: installed software in a non-standard prefix.
[52.192.80.38] out: 
[52.192.80.38] out: Alternatively, you may set the environment variables MONO_MODULE_CFLAGS
[52.192.80.38] out: and MONO_MODULE_LIBS to avoid the need to call pkg-config.
[52.192.80.38] out: See the pkg-config man page for more details.
[52.192.80.38] out: Error: Could not run ./configure, which is required to configure xsp

所以我尝试了这个link并且它没有用。我也尝试了这个link,但它不起作用

单声道-V输出

[52.192.80.38] run: mono -V
[52.192.80.38] out: Mono JIT compiler version 3.12.1 ((HEAD/4cb3f77 Thu Nov  5 02:37:29 UTC 2015)
[52.192.80.38] out: Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
[52.192.80.38] out:     TLS:           __thread
[52.192.80.38] out:     SIGSEGV:       altstack
[52.192.80.38] out:     Notifications: epoll
[52.192.80.38] out:     Architecture:  amd64
[52.192.80.38] out:     Disabled:      none
[52.192.80.38] out:     Misc:          softdebug 
[52.192.80.38] out:     LLVM:          supported, not enabled.
[52.192.80.38] out:     GC:            sgen

1 个答案:

答案 0 :(得分:0)

好傻我。使用sudo在结构上设置配置路径不起作用。您必须使用shell_env才能使其正常工作

with cd("/opt/%s" %(MONO_VERSION)):
        sudo("git clone https://github.com/mono/xsp")
        with cd("/opt/%s/xsp" %(MONO_VERSION)):
            sudo("git checkout %s" %(XSP_VER))
            with shell_env(PKG_CONFIG_PATH="/usr/lib/pkgconfig"):
                sudo("./autogen.sh --prefix=/usr")
                sudo("make")
                sudo("make install")