No package 'mono' found when installing XS

2019-08-02 03:13发布

I am trying to get Mono working on nginx with fastCGI.

I have done a fresh install of CentOS 6, and performed all the updates. I then installed nginx, and opened up the firewalls I needed. I can now see the simple HTML page from nginx without a problem.

I then followed this tutorial for installing Mono via Git : https://stackoverflow.com/a/13424880/221456

libgdiplus installed fine mono installed fine xsp, when I run autogen (with the prefix), gives me this error :

checking for MONO_MODULE... configure: error: Package requirements (mono >= 2.10.0) were not met:

No package 'mono' found

I did a bit of searching, and the only thing I could find was to run this command :

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

Which I have tried, however I still get the exact same error message.

What am I missing?

1条回答
太酷不给撩
2楼-- · 2019-08-02 04:18

The problem is with the variable

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

the correct is

export PKG_CONFIG_PATH=/usr/lib/pkgconfig

because you compile with the with the prefix. /usr

查看更多
登录 后发表回答