| Summary: | mono-tools error when trying to configure No package 'gconf-sharp' found | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Popolous <Popolous> |
| Component: | New packages | Assignee: | dotnet project <dotnet> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | 2006.0 | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Popolous
2006-06-03 08:39:01 UTC
This error appears whenever one try: # emerge mono-tools I was unable to reproduce the error. What version of mono-tools are you attempting to install, and what version of gconf-sharp is on your system? Does /usr/lib/pkgconfig/gconf-sharp.pc exist on your system? What is the output of pkg-config --libs gconf-sharp ? Please, don't paste long errors into bug summary... <snip> : checking for GTK_SHARP... configure: error: Package requirements (gtk-sharp glade-sharp gconf-sharp) were not met: </snip> (In reply to comment #2) > I was unable to reproduce the error. > What version of mono-tools are you attempting to install, and what version of > gconf-sharp is on your system? Does /usr/lib/pkgconfig/gconf-sharp.pc exist on > your system? What is the output of pkg-config --libs gconf-sharp ? > The version of mono-tools that I'm trying to install is: # emerge mono-tools Calculating dependencies ...done! >>> emerge (1 of 1) dev-util/mono-tools-1.1.11 to / And the version of gconf-sharp is: * dev-dotnet/gconf-sharp Latest version available: 2.8.2 Latest version installed: 2.8.2 Size of downloaded files: 6,355 kB Homepage: http://gtk-sharp.sourceforge.net/ Description: gconf component of gtk-sharp License: LGPL-2.1 The file /usr/lib/pkgconfig/gconf-sharp-2.0.pc exists, but I don't know if that name is correct. The output for the last command you said is: # pkg-config --libs gconf-sharp Package gconf-sharp was not found in the pkg-config search path. Perhaps you should add the directory containing `gconf-sharp.pc' to the PKG_CONFIG_PATH environment variable No package 'gconf-sharp' found Hope it helps. Thanks for your guidance!! /usr/lib/pkgconfig/gconf-sharp.pc is for gconf-sharp-1.x, which is required by mono-tools. It should be emerged as a dependency when you install mono-tools, so my guess is that you previously either injected it or added it to packages.provided. Try running emerge =dev-dotnet/gconf-sharp-1.0.10 and then emerging mono-tools. I have tried to compile gconf-sharp-1.0.10 and I got the following error: cs ./PropertyEditorToggleButton.cs ./EditorShell.cs AssemblyInfo.cs error CS0006: Cannot find assembly `//usr/lib/mono/gtk-sharp/gnome-sharp.dll' Log: Compilation failed: 1 error(s), 0 warnings That file is provided by dev-dotnet/gnome-sharp-1.0.10 It should be a dependency, but maybe that somehow got injected too.. try emerge =dev-dotnet/gnome-sharp-1.0.10 and then run the commands I gave you earlier. Hi again. I compiled dev-dotnet/gnome-sharp-1.0.10, and the file is again: /usr/lib/pkgconfig/gconf-sharp-2.0.pc, it didn't changed with the compilation of this package. I added dev-dotnet/gnome-sharp-2.8.2 in /etc/portage/profile/package.provided and did an "# emerge -C gnome-sharp" before installing the 1.0.10 version. After doing this the output for the other command is: # pkg-config --libs gconf-sharp Package gconf-sharp was not found in the pkg-config search path. Perhaps you should add the directory containing `gconf-sharp.pc' to the PKG_CONFIG_PATH environment variable No package 'gconf-sharp' found What else can I do to check where the problem is? Can you paste the part of the emerge =dev-dotnet/gnome-sharp-1.0.10 where it shows the files being added to /usr/lib? This is what I get: making executable: /usr/lib/libgnomesharpglue.so >>> Completed installing gnome-sharp-1.0.10 into /var/tmp//portage/gnome-sharp-1.0.10/image/ >>> Merging dev-dotnet/gnome-sharp-1.0.10 to / --- /usr/ --- /usr/lib/ --- /usr/lib/mono/ --- /usr/lib/mono/gac/ --- /usr/lib/mono/gac/gnome-sharp/ --- /usr/lib/mono/gac/gnome-sharp/1.0.0.0__35e10195dab3c99f/ >>> /usr/lib/mono/gac/gnome-sharp/1.0.0.0__35e10195dab3c99f/gnome-sharp.dll.config >>> /usr/lib/mono/gac/gnome-sharp/1.0.0.0__35e10195dab3c99f/gnome-sharp.dll --- /usr/lib/mono/gtk-sharp/ >>> /usr/lib/mono/gtk-sharp/gnome-sharp.dll -> ../gac/gnome-sharp/1.0.0.0__35e10195dab3c99f/gnome-sharp.dll >>> /usr/lib/libgnomesharpglue.la >>> /usr/lib/libgnomesharpglue.so --- /usr/lib/pkgconfig/ >>> /usr/lib/pkgconfig/gnome-sharp.pc >>> /usr/lib/libgnomesharpglue.a --- /usr/share/ --- /usr/share/gapi/ >>> /usr/share/gapi/gnome-api.xml >>> Safely unmerging already-installed instance... --- !mtime obj /usr/share/gapi/gnome-api.xml --- !mtime obj /usr/lib/pkgconfig/gnome-sharp.pc --- !mtime obj /usr/lib/mono/gac/gnome-sharp/1.0.0.0__35e10195dab3c99f/gnome-sharp.dll.config --- !mtime obj /usr/lib/mono/gac/gnome-sharp/1.0.0.0__35e10195dab3c99f/gnome-sharp.dll --- !mtime obj /usr/lib/libgnomesharpglue.so --- !mtime obj /usr/lib/libgnomesharpglue.la --- !mtime obj /usr/lib/libgnomesharpglue.a --- !empty dir /usr/share/gapi --- !empty dir /usr/share --- !empty dir /usr/lib/pkgconfig --- !empty dir /usr/lib/mono/gtk-sharp --- !empty dir /usr/lib/mono/gac/gnome-sharp/1.0.0.0__35e10195dab3c99f --- !empty dir /usr/lib/mono/gac/gnome-sharp --- !empty dir /usr/lib/mono/gac --- !empty dir /usr/lib/mono --- !empty dir /usr/lib --- !empty dir /usr --- !targe sym /usr/lib/mono/gtk-sharp/gnome-sharp.dll >>> original instance of package unmerged safely. >>> Regenerating /etc/ld.so.cache... >>> dev-dotnet/gnome-sharp-1.0.10 merged. /usr/lib/pkgconfig/gnome-sharp.pc should exist, as you can see:
>>> /usr/lib/pkgconfig/gnome-sharp.pc
a mono-tools emerge still fails? can you confirm that that file exists?
(In reply to comment #11) > /usr/lib/pkgconfig/gnome-sharp.pc should exist, as you can see: > >>> /usr/lib/pkgconfig/gnome-sharp.pc > > a mono-tools emerge still fails? can you confirm that that file exists? > Yes, the file does exist, and it sais: prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib Name: Gnome# Description: Gnome# - GNOME .NET Binding Version: 1.0.10 Requires: gtk-sharp art-sharp Libs: -r:${libdir}/mono/gtk-sharp/gnome-sharp.dll But emerge mono-tools is still failing..., what else can I do or prove? stupid mistake on my part, try an emerge =dev-dotnet/gconf-sharp-1.0.10 and then emerge mono-tools With your last advice, I could pass the last failure of mono-tools. I get the following message, once I have emerge =dev-dotnet/gconf-sharp-1.0.10 and emerge mono-tools: ./GeckoHtmlRender.cs(191,7): warning CS0219: The variable `result' is assigned but its value is never used Compilation succeeded - 1 warning(s) I suppose it has failed (I can't see the normal message when Gentoo has compiled one package), but it is saying that the Compilation succeded.... How can I check this? In addition, thak you very much for your patience Sorry, I am very embarrased for my clumsiness. With a simple emerge --search mono-tools I got:
* dev-util/mono-tools
Latest version available: 1.1.11
Latest version installed: [ Not Installed ]
Size of downloaded files: 248 kB
Homepage: http://www.mono-project.com/
Description: Set of useful Mono related utilities
License: GPL-2
So it didn't compile succesfully (as I was afraid of)
I get the same warnings, but it compiles successfully. Are you sure it's not still compiling? If you cancelled it, try it again. If it's successful, /usr/bin/monodoc should exist. Something very weird has just happened. After my last post, I tried to run monodevelop. It hanged up and I couldn't run it successfully, so I emerged the last versions of gconf-sharp and gnome-sharp (2.8.2). monodevelop started ok, and when I try to emerge mono-tools, I pass by the first error (I suppose I still have /usr/lib/pkgconfig/gnome-sharp.pc) but mono-tools compiling proccess still halts... Could this be a dependency not satisfied when trying to emerge mono-tools-1.1.11? Maybe it should install first gnome-sharp and gconf-sharp (1.0.10) and then 2.8.2... I'm really lost and confused... The order shouldn't matter. mono-tools needs gconf-sharp 1.x, it doesn't use the 2.x version at all. Try running this to make sure you have all the deps emerged, since some of the others appear to have been injected and some of these might be aswell: emerge =dev-dotnet/gtk-sharp-1.0* =dev-dotnet/gnome-sharp-1.0* =dev-dotnet/glade-sharp-1.0* =dev-dotnet/gtkhtml-sharp-1.0* =dev-dotnet/gconf-sharp-1.0* =dev-dotnet/gecko-sharp-0.11 Then emerge mono-tools, and if it fails paste the error. Great!! At last it worked!! Thank you very much Andrew. So, when all's said and done, everything was a problem of library versions. Thanks again. No problem. Please mark this as resolved.. I'm not a dev, so I can't. Ok, I'll put it as fixed. Thanks!!! |