Issue: Installing D

Chris Miller lordSaurontheGreat at gmail.com
Wed Feb 20 18:04:21 PST 2008


Jesse Phillips Wrote:

> On Wed, 20 Feb 2008 17:36:42 -0500, Chris Miller wrote:
> 
> > Jacob Carlborg Wrote:
> > 
> >> Chris Miller wrote:
> >> > Bill Baxter Wrote:
> >> > 
> >> >> Chris Miller wrote:
> >> >>> Chris Miller Wrote:
> >> >>> I attempted to install this stuff to a flash drive while at school.
> >> >>>  It didn't work on the derelict install.  I thought it was related
> >> >>> to the weird nature of the school machines, but when the error
> >> >>> happened again at home... I knew something was wrong.  During dsss
> >> >>> net install derelict this happens:
> >> >>>
> >> >>> .. lots of stuff we don't care about ... Exported revision 282.
> >> >>> Creating imports for DerelictUtil
> >> >>>
> >> >>> derelict => DerelictUtil
> >> >>> + C:\dsss\bin\rebuild.exe -Idsss_imports\ -I. -S.\
> >> >>> -IC:\dsss\include\d -SC:\dsss \lib\  -IC:\dsss\include\d
> >> >>> -SC:\dsss\lib  -oqdsss_objs\D  -explicit -lib derelic
> >> >>> t\util\exception.d derelict\util\loader.d derelict\util\wintypes.d
> >> >>> derelict\util \wrapper.d -ofDerelictUtil.lib
> >> >>> derelict\util\wrapper.d(71): Error: undefined identifier
> >> >>> fromStringz derelict\util\wrapper.d(71): Error: function expected
> >> >>> before (), not fromStringz
> >> >>>  of type int
> >> >>> derelict\util\wrapper.d(71): Error: cannot implicitly convert
> >> >>> expression (fromSt ringz(cstr)) of type int to char[]
> >> >>> Command C:\dsss\bin\rebuild.exe returned with code 1, aborting.
> >> >>> Error: Command failed, aborting.
> >> >>>
> >> >>> It seems to be choking on the compile, screaming something about
> >> >>> the source it's trying to compile in its final moments.
> >> >>>
> >> >>> I have a few hypotheses:
> >> >>>
> >> >>> 1) Derelict isn't Tango-compatible.  Move back to Phobos, compile
> >> >>> Derelict, move back to Tango. 2) The sources dsss downloaded don't
> >> >>> compile anyways.  Manually check out a previous revision, or wait
> >> >>> for someone to fix it.
> >> >> fromStringz is a function in the latest SVN of Tango. It called
> >> >> fromUtf8z in the 0.99.4 Tango "Frank" release.
> >> >>
> >> >> dsss net install generally downloads latest sources from dsource, so
> >> >> I suspect what happened is that SVN Derelict has been fixed to work
> >> >> with SVN tango, but you are using the release Tango.
> >> >>
> >> >> You can either get Tango from SVN and build it, Or you can maybe
> >> >> find a tarball of Derelict that's compatible with 0.99.4 tango and
> >> >> install that.
> >> > 
> >> > Hmm, I don't know.  The version file says it's a compatible version
> >> > (I think.)  It says version 0.995, which is >0.994, so it should work
> >> > (right?)
> >> > 
> >> > excerpt from Version.d:
> >> > 
> >> > module tango.core.Version;
> >> > 
> >> > public const Tango = 0.995f;
> >> > 
> >> > 
> >> I think you have an old version of tango where they haven't changed to
> >> fromStringz yet. As far as I know Tango 0.99.5 hasn't been released yet
> >> but I've heard it will be soon. You can download the svn trunk, I
> >> usually don't recompile the library I just replace the source files, I
> >> think it should be enough.
> > 
> > I downloaded this:
> > http://downloads.dsource.org/projects/tango/snapshots/tango-bin-win32-
> CURRENT-dmd.1.025.zip
> > Which is the fourth link down on this page:
> > http://dsource.org/projects/tango/wiki/DmdDownloads Which I got to from
> > here:
> > http://dsource.org/projects/tango/wiki/Download From the "Get Tango" box
> > here:
> > http://dsource.org/projects/tango
> > 
> > So you think it may be that that binaries aren't the right version, and
> > that I should install Tango through DSSS?  Didn't someone say that
> > installing Tango through DSSS was unreliable?
> > 
> > Furthermore, if I install Tango through DSSS (dsss net install tango),
> > how will I force it to use the DSSS installation and not the Tango
> > already in :\dmd?  Will the DSSS installation take precedence over the
> > :\dmd version by default?  Should I change some configuration settings
> > in :\dsss?
> > 
> > Getting scared and running back to Java isn't an option for me anymore,
> > so you may be stuck with me ;)  After the Fibers in Tango I get real
> > excited and thought "wow, this is the language for me!"  Fibers reminded
> > me of the Python Generators I read about elsewhere.
> > 
> > Thanks for your help, hopefully we can figure out the problem and fix
> > it.  At which point someone should update the page on Wiki4D or
> > something...
> 
> I don't really have suggestions, couldn't exactly follow what was being 
> asked or tried, but I'll see if I can explain some things.
> 
> DSSS builds against Phobos thus you can not install the Tango-dmd bundle 
> and then compile DSSS.

I never tried building DSSS.

> "Furthermore, if I install Tango through DSSS (dsss net install tango), 
> how will I force it to use the DSSS installation and not the Tango 
> already in :\dmd?"

Wouldn't it build a version of Tango and stick that in \dsss\import or something?

> This question really has me lost, I think you have some misunderstanding. 
> DSSS is a build tool that uses dmd, Tango is a run-time library for dmd 
> to link in. Thus you should be able to use DSSS, Tango and DMD as one big 
> happy family. I've never installed Tango with dsss netinstall nor have I 
> installed either in windows.

I wouldn't suggest trying much of anything in Windows except for fdisk c:

I try to stick with Linux, but there does come a time when it's necessary to make it work on Windows.


More information about the Digitalmars-d-learn mailing list