编译MonoDevelop 4.2.3

时间:2014-05-30 13:50:59

标签: linux build compilation mono monodevelop

我需要帮助,我正在尝试编译monodevelop代码,但是当我使用命令“./configure”告诉我我需要安装一个单声道版本,但我安装了它

    [raven@localhost ~]$ mono -V
    Mono JIT compiler version 3.2.8 (tarball Fri May 30 08:15:47 CDT 2014)
    Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  amd64
        Disabled:      none
        Misc:          softdebug 
        LLVM:          supported, not enabled.
        GC:            sgen
    [raven@localhost ~]$ cd /home/raven/Downloads/monodevelop-4.2.3
    [raven@localhost monodevelop-4.2.3]$ ./configure
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking how to create a ustar tar archive... gnutar
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking for mono... /usr/local/bin/mono
    checking for gmcs... /usr/local/bin/gmcs
    checking for pkg-config... /usr/bin/pkg-config
    configure: error: You need mono 3.0.4 or newer
    [raven@localhost monodevelop-4.2.3]$

3 个答案:

答案 0 :(得分:2)

configure脚本通过pkg-config读取单声道版本。确保您已安装mono.pc并且pkg-config正在找到它。由于您似乎已将mono安装到/usr/local,因此mono.pc可能位于/usr/local/lib/pkg-config。但是,您使用的pkg-config /usr/bin可能未配置为/usr/local。您应该使用添加到configure的正确目录重新运行PKG_CONFIG_PATH,例如:

PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure

答案 1 :(得分:2)

我不得不安装mono-devel包。我得到了这个thread的提示。要安装mono-devel我用过:

$ sudo apt-get install mono-devel

答案 2 :(得分:1)

使用

编译和安装mono
./autogen.sh --prefix=/usr

而不是

./autogen.sh --prefix=/usr/local