www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Updating D 1.0

reply Mike James <mj.wave btinternet.com> writes:
What is the successful way of updating the (Windows) DM and DMD subdirectories
when a D update is ready. I have just updated 1.27 to 1.29 by copying/merging
the directories - it failed with the Tango library files when I did a test
compilation so I have unzipped the old files and put them back as before. I
have used DInstaller for the complete install previously but it's not
up-to-date with 1.29 yet...

Regards, Mike.
Apr 24 2008
next sibling parent BCS <BCS pathlink.com> writes:
Mike James wrote:
 What is the successful way of updating the (Windows) DM and DMD subdirectories
when a D update is ready. I have just updated 1.27 to 1.29 by copying/merging
the directories - it failed with the Tango library files when I did a test
compilation so I have unzipped the old files and put them back as before. I
have used DInstaller for the complete install previously but it's not
up-to-date with 1.29 yet...
 
 Regards, Mike.
I just avoid changing anything in the dmd dir on the first install and then rename & replace it with the new one. You might need to copy the old .ini file though.
Apr 24 2008
prev sibling next sibling parent reply torhu <no spam.invalid> writes:
Mike James wrote:
 What is the successful way of updating the (Windows) DM and DMD subdirectories
when a D update is ready. I have just updated 1.27 to 1.29 by copying/merging
the directories - it failed with the Tango library files when I did a test
compilation so I have unzipped the old files and put them back as before. I
have used DInstaller for the complete install previously but it's not
up-to-date with 1.29 yet...
Tango 0.99.5 isn't compatible with newer than 1.027, could that be the problem?
Apr 24 2008
next sibling parent reply Lester L. Martin II <lestermartin92 gmail.com> writes:
torhu Wrote:

 Mike James wrote:
 What is the successful way of updating the (Windows) DM and DMD subdirectories
when a D update is ready. I have just updated 1.27 to 1.29 by copying/merging
the directories - it failed with the Tango library files when I did a test
compilation so I have unzipped the old files and put them back as before. I
have used DInstaller for the complete install previously but it's not
up-to-date with 1.29 yet...
Tango 0.99.5 isn't compatible with newer than 1.027, could that be the problem?
Hey Mike James, As for Dinstaller, I am the developer of it and it won't update to the latest compiler version until tango updates to the latest compiler version(Tango Stable). Also I am working on something for Tango so I may not be able to do so right away. I plan on making a new system that uses a file it downloads at runtime to ask you which file you would like to download. The file that it finaly downloads will contain all option information and as such you could create your own option list file for it that would support things like that. This will not be implemented until I finish the thing I'm working on for Tango and as so it will just be a hard coded update version. Lester L. Martin II
Apr 24 2008
parent Mike James <mj.wave btinternet.com> writes:
Lester L. Martin II Wrote:

 torhu Wrote:
 
 Mike James wrote:
 What is the successful way of updating the (Windows) DM and DMD subdirectories
when a D update is ready. I have just updated 1.27 to 1.29 by copying/merging
the directories - it failed with the Tango library files when I did a test
compilation so I have unzipped the old files and put them back as before. I
have used DInstaller for the complete install previously but it's not
up-to-date with 1.29 yet...
Tango 0.99.5 isn't compatible with newer than 1.027, could that be the problem?
Hey Mike James, As for Dinstaller, I am the developer of it and it won't update to the latest compiler version until tango updates to the latest compiler version(Tango Stable). Also I am working on something for Tango so I may not be able to do so right away. I plan on making a new system that uses a file it downloads at runtime to ask you which file you would like to download. The file that it finaly downloads will contain all option information and as such you could create your own option list file for it that would support things like that. This will not be implemented until I finish the thing I'm working on for Tango and as so it will just be a hard coded update version. Lester L. Martin II
Thanks, I will wait for the next update of DInstall - keep up the good work :-) Regards, Mike.
Apr 25 2008
prev sibling parent Mike James <mj.wave btinternet.com> writes:
torhu Wrote:

 Mike James wrote:
 What is the successful way of updating the (Windows) DM and DMD subdirectories
when a D update is ready. I have just updated 1.27 to 1.29 by copying/merging
the directories - it failed with the Tango library files when I did a test
compilation so I have unzipped the old files and put them back as before. I
have used DInstaller for the complete install previously but it's not
up-to-date with 1.29 yet...
Tango 0.99.5 isn't compatible with newer than 1.027, could that be the problem?
It could be - the Tango I'm using is version 0.99.5 - I think I will wait until the next 'group' release of Tango and DMD. Regards, Mike.
Apr 25 2008
prev sibling parent reply Sean Kelly <sean invisibleduck.org> writes:
== Quote from Mike James (mj.wave btinternet.com)'s article
 What is the successful way of updating the (Windows) DM and DMD subdirectories
when a D update is
ready. I have just updated 1.27 to 1.29 by copying/merging the directories - it failed with the Tango library files when I did a test compilation so I have unzipped the old files and put them back as before. I have used DInstaller for the complete install previously but it's not up-to-date with 1.29 yet... Regarding Tango, if a compiler release includes new functions in the runtime, then Tango must be updated to include them before a Tango app will work with that version of the compiler. This is generally a pretty quick process on my part, but it requires my being at home and in front of the computer to accomplish, which means not until this evening PST at the earliest. Sean
Apr 24 2008
next sibling parent reply Lars Ivar Igesund <larsivar igesund.net> writes:
Sean Kelly wrote:

 == Quote from Mike James (mj.wave btinternet.com)'s article
 What is the successful way of updating the (Windows) DM and DMD
 subdirectories when a D update is
ready. I have just updated 1.27 to 1.29 by copying/merging the directories - it failed with the Tango library files when I did a test compilation so I have unzipped the old files and put them back as before. I have used DInstaller for the complete install previously but it's not up-to-date with 1.29 yet... Regarding Tango, if a compiler release includes new functions in the runtime, then Tango must be updated to include them before a Tango app will work with that version of the compiler. This is generally a pretty quick process on my part, but it requires my being at home and in front of the computer to accomplish, which means not until this evening PST at the earliest.
Yes, but in this case (1.029 from 1.028) there is no problem. There was a problem with Tango 0.99.5 and DMD 1.028 and above as DMD got stricter on a couple of points. -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango
Apr 24 2008
parent Sean Kelly <sean invisibleduck.org> writes:
Lars Ivar Igesund wrote:
 Sean Kelly wrote:
 
 == Quote from Mike James (mj.wave btinternet.com)'s article
 What is the successful way of updating the (Windows) DM and DMD
 subdirectories when a D update is
ready. I have just updated 1.27 to 1.29 by copying/merging the directories - it failed with the Tango library files when I did a test compilation so I have unzipped the old files and put them back as before. I have used DInstaller for the complete install previously but it's not up-to-date with 1.29 yet... Regarding Tango, if a compiler release includes new functions in the runtime, then Tango must be updated to include them before a Tango app will work with that version of the compiler. This is generally a pretty quick process on my part, but it requires my being at home and in front of the computer to accomplish, which means not until this evening PST at the earliest.
Yes, but in this case (1.029 from 1.028) there is no problem. There was a problem with Tango 0.99.5 and DMD 1.028 and above as DMD got stricter on a couple of points.
Oh right. And for what it's worth, there are no library changes between 1.028 and 1.029 that should matter. Sean
Apr 24 2008
prev sibling parent Bill Baxter <dnewsgroup billbaxter.com> writes:
Sean Kelly wrote:
 == Quote from Mike James (mj.wave btinternet.com)'s article
 What is the successful way of updating the (Windows) DM and DMD subdirectories
when a D update is
ready. I have just updated 1.27 to 1.29 by copying/merging the directories - it failed with the Tango library files when I did a test compilation so I have unzipped the old files and put them back as before. I have used DInstaller for the complete install previously but it's not up-to-date with 1.29 yet... Regarding Tango, if a compiler release includes new functions in the runtime, then Tango must be updated to include them before a Tango app will work with that version of the compiler. This is generally a pretty quick process on my part, but it requires my being at home and in front of the computer to accomplish, which means not until this evening PST at the earliest.
I think the problem is the OP just overwrote his Tango-fied sc.ini with the stock DMD one. After I unzip a new dmd version over top the old one, I run my "usetango.bat" script which looks like this these days: ---- ECHO OFF echo Setting up DMD environment for using Tango runtime libraries... copy "%DMDDIR%\dmd\bin\sc.tango.ini" "%DMDDIR%\dmd\bin\sc.ini" copy "%DMDDIR%\dsss\etc\rebuild\default.tango" "%DMDDIR%\dsss\etc\rebuild\default" ren "%DMDDIR%\dsss\include\d\std_tango_" std ren "%DMDDIR%\dsss\lib" libphobos ren "%DMDDIR%\dsss\libtango" lib echo Done. ---- Note that I keep a copy of the tango version sc.ini in sc.tango.ini. And here's the corresponding usephobos.bat too: ---- ECHO OFF echo Setting up DMD environment for using Phobos runtime libraries... copy "%DMDDIR%\dmd\bin\sc.phobos.ini" "%DMDDIR%\dmd\bin\sc.ini" copy "%DMDDIR%\dsss\etc\rebuild\default.phobos" "%DMDDIR%\dsss\etc\rebuild\default" ren "%DMDDIR%\dsss\include\d\std" std_tango_ ren "%DMDDIR%\dsss\lib" libtango ren "%DMDDIR%\dsss\libphobos" lib echo Done. ---- I also keep a copy of the default phobos sc.ini in sc.phobos.ini. The only problem is if DMD changes what it puts in sc.ini. But I don't think that's happened in a long time. --bb
Apr 24 2008