[Mono-list] Incorrect path interpretation(gacutil)
Rafael Teixeira
rafael.teixeirabr at terra.com.br
Mon Jan 15 09:49:07 EST 2007
It is probably getting confused on parsing options.
In your case it really gets confused because you have separated /i from
it's argument (the path to the library) with the unnecessary -f. Try:
mono "/usr/lib/mono/lib/mono/1.0/gacutil.exe" -i
"/root/XXX/XXX/XXX/Assembly.dll"
It should work.
Try gacutil -? (or --help), to see the somewhat expanded list of options
Mono's implementation has, and also the unsupported ones.
:)
On Sun, 2007-01-14 at 23:09 -0800, monoport wrote:
> Hi
>
> Is there a bug in the gacutil on UNIX or my misunderstanding of the UNIX
> environment?
> I have used to produce such a command line:
>
> mono "/usr/lib/mono/lib/mono/1.0/gacutil.exe" -i -f
> "/root/XXX/XXX/XXX/Assembly.dll"
>
> And got the response:
> Option /root/XXX/XXX/XXX/Assembly.dll takes 1 argument
>
> >From my point of view there is a bug because of misinterpretation of the '/'
> simbol in the assembly path.
> When I remove the starting slash I get
>
> Failure adding assembly to the cache: The system cannot find the file
> specified.
>
> In this case, probably, the relative path is assumed(therefore doesn't
> esists).
>
> My OS is SUSE Linux 10.1
> Mono JIT compiler version 1.2.2.1, (C) 2002-2006 Novell, Inc and
> Contributors. www.mono-project.com
> (Updated via YaST)
> Problem doesn't exist in the Windows compilation of this version of mono(in
> Windows path isn't starting with a slash).
>
> Is threre anything I can do?
> Because I have ~15 of assemblies I have to place in GAC and the installation
> program is used
> to perform the automated registration fails to do the job.
>
> Thank you.
> ---
> monoport
More information about the Mono-list
mailing list