Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3669480
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:14:55+00:00 2026-05-19T02:14:55+00:00

I am trying to build a Mono project using NAnt but I get the

  • 0

I am trying to build a Mono project using NAnt but I get the error listed below. I have tried altering the environment variable PKG_CONFIG_PATH to include the path leading to the file: mono.pc but that does not seem to work.

Failed to initialize the 'Mono 3.5 Profile' (mono-3.5) target framework.:
NAnt.Core.BuildException: Failed to initialize the 'Mono 3.5 Profile' (mono-3.5) target framework. ---> Unable to locate 'mono' module using pkg-config. Download the Mono development packages from http://www.mono-project.com/downloads/.:
NAnt.Core.BuildException: Unable to locate 'mono' module using pkg-config. Download the Mono development packages from http://www.mono-project.com/downloads/.
  at NAnt.Core.Tasks.FailTask.ExecuteTask () [0x00000] in <filename unknown>:0 
  at NAnt.Core.Task.Execute () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at NAnt.Core.FrameworkInfo.Init () [0x00000] in <filename unknown>:0 
  at NAnt.Core.FrameworkInfo.Validate () [0x00000] in <filename unknown>:0 
  at NAnt.Core.ProjectSettingsLoader.ConfigureRuntimeFramework () [0x00000] in <filename unknown>:0 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T02:14:55+00:00Added an answer on May 19, 2026 at 2:14 am

    I’ve recently had the same problem trying to install the TAO Framework on Mac OSX 10.6.5 under Mono 2.8.1 with Nant 0.90 (FYI). Here’s how I was led to solve this (guided by this page):

    1. Locate the nant script itself (‘/usr/bin/nant’ on OSX, try ‘which nant’)
    2. Open the ‘nant’ script in an editor (you might need the right permissions).
    3. On a new line and before the ‘exec …’ line, add something like:

      export
      PKG_CONFIG_PATH=/path/to/Mono/Framework/Versions/VERSION/lib/pkgconfig

    my Mac OSX version looks like:

    export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:/Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig/
    

    (nb. my version actually has 2 pkgconfig paths, separated by a colon ‘:’, ‘/usr/lib/pkgconfig’ is also searched automatically, JFYI).

    Also, you should add the exact same ‘export’ line to one of your .bashrc or .profile files (or the corresponding /etc/bashrc or /etc/profile files to set this globally).

    Hope this helps.

    Cheers

    Rich

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting the following build error when trying to build a sample project using
Trying to build my project with ANT in idea 10 and I get a
I am trying to build a test MVC4 project on OS X 10.7.4 using
I'm trying to use mono to build a C# application for linux. But it
I am trying to build Moonlight application using MonoDevelop 2.8 and Mono 2.10.5 on
I'm trying to build a MonoTouch project using xbuild (on a Mac, clearly). Here's
I am trying to build a sample app using Monotouch. I have this configuration/setup
I was trying Build For Archiving application (from Titanium Mobile) with xCode 4.4, but
I'm trying build a MVC framework, but I'm confused about manage themes. Well... I
I am trying to convert a flv video to mp4 using a264 , but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.