| Thread overview | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
January 16, 2016 dmd installation question | ||||
|---|---|---|---|---|
| ||||
Hi
I have downloaded and installed DMD on a Windows 10 64-bit machine. When I try to build my app in Visual Studio - I am getting an error:
Error: cannot find source code for runtime library file 'object.d'
dmd might not be correctly installed. Run 'dmd -man' for installation instructions.
config file: C:\D\dmd2\windows\bin\sc.ini
Specify path to file 'object.d' with -I switch
Upon investigating it appears that the sc.ini file is not readable by the user.
If I log in as Administrator then the build works.
What am I doing wrong?
Regards
| ||||
January 16, 2016 Re: dmd installation question | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Dibyendu Majumdar | On Saturday, 16 January 2016 at 01:16:22 UTC, Dibyendu Majumdar wrote:
> I have downloaded and installed DMD on a Windows 10 64-bit machine. When I try to build my app in Visual Studio - I am getting an error:
>
> Error: cannot find source code for runtime library file 'object.d'
> dmd might not be correctly installed. Run 'dmd -man' for installation instructions.
> config file: C:\D\dmd2\windows\bin\sc.ini
> Specify path to file 'object.d' with -I switch
>
I used the Installer by the way.
| |||
January 16, 2016 Re: dmd installation question | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Dibyendu Majumdar | On Saturday, 16 January 2016 at 01:16:22 UTC, Dibyendu Majumdar wrote: > Hi > > I have downloaded and installed DMD on a Windows 10 64-bit machine. When I try to build my app in Visual Studio - I am getting an error: > > Error: cannot find source code for runtime library file 'object.d' > dmd might not be correctly installed. Run 'dmd -man' for installation instructions. > config file: C:\D\dmd2\windows\bin\sc.ini > Specify path to file 'object.d' with -I switch > > Upon investigating it appears that the sc.ini file is not readable by the user. > > If I log in as Administrator then the build works. > > What am I doing wrong? > > Regards Probably this: https://issues.dlang.org/show_bug.cgi?id=15456 I'm going to try to get around to fixing that and making an installer for LDC this weekend. | |||
January 16, 2016 Re: dmd installation question | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Brad Anderson | On Saturday, 16 January 2016 at 02:07:13 UTC, Brad Anderson wrote:
> On Saturday, 16 January 2016 at 01:16:22 UTC, Dibyendu Majumdar wrote:
>> [...]
>
> Probably this:
>
> https://issues.dlang.org/show_bug.cgi?id=15456
>
> I'm going to try to get around to fixing that and making an installer for LDC this weekend.
Reading more carefully it may not be the same bug.
| |||
January 16, 2016 Re: dmd installation question | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Brad Anderson | On Saturday, 16 January 2016 at 02:10:44 UTC, Brad Anderson wrote:
> On Saturday, 16 January 2016 at 02:07:13 UTC, Brad Anderson wrote:
>> On Saturday, 16 January 2016 at 01:16:22 UTC, Dibyendu Majumdar wrote:
>>> [...]
>>
>> Probably this:
>>
>> https://issues.dlang.org/show_bug.cgi?id=15456
>>
>> I'm going to try to get around to fixing that and making an installer for LDC this weekend.
>
> Reading more carefully it may not be the same bug.
I did not run the uninstaller - it was a first time install. So the problem appears to be in the installer.
I downloaded the compressed archive and extracted - this doesn't appear to have the problem.
| |||
January 16, 2016 Re: dmd installation question | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Dibyendu Majumdar | On Saturday, 16 January 2016 at 11:53:07 UTC, Dibyendu Majumdar wrote:
>>> Probably this:
>>>
>>> https://issues.dlang.org/show_bug.cgi?id=15456
>>>
>>> I'm going to try to get around to fixing that and making an installer for LDC this weekend.
>>
>> Reading more carefully it may not be the same bug.
>
It seems that the sc.ini is modified by the installer - and in doing so it loses the group "Users" assignment so that no one other than the administrator can access it.
| |||
January 17, 2016 Re: dmd installation question | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Dibyendu Majumdar | On Saturday, 16 January 2016 at 22:04:58 UTC, Dibyendu Majumdar wrote:
>
> It seems that the sc.ini is modified by the installer - and in doing so it loses the group "Users" assignment so that no one other than the administrator can access it.
I'm unable to reproduce this with the 2.069.2 installer. I completely removed my previous installation and installed from scratch. All of my projects compile fine. Are you using 2.069.2 or the beta?
| |||
January 17, 2016 Re: dmd installation question | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Mike Parker | On Sunday, 17 January 2016 at 03:27:29 UTC, Mike Parker wrote:
> On Saturday, 16 January 2016 at 22:04:58 UTC, Dibyendu Majumdar wrote:
>
>>
>> It seems that the sc.ini is modified by the installer - and in doing so it loses the group "Users" assignment so that no one other than the administrator can access it.
>
> I'm unable to reproduce this with the 2.069.2 installer. I completely removed my previous installation and installed from scratch. All of my projects compile fine. Are you using 2.069.2 or the beta?
I used 2.069.2.
Are you sure you are attempting to build from a non-administrative user? The issue log previously noted does show others are getting the same error.
| |||
January 18, 2016 Re: dmd installation question | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Dibyendu Majumdar | On Saturday, 16 January 2016 at 01:16:22 UTC, Dibyendu Majumdar wrote: > Hi > > [snip] > > Upon investigating it appears that the sc.ini file is not readable by the user. > > If I log in as Administrator then the build works. > > What am I doing wrong? > > Regards We've got a wealth of fixes for this now (Rainer and I each independently made one). https://github.com/D-Programming-Language/installer/pull/165 https://github.com/D-Programming-Language/installer/pull/166 Just need someone to review and pick one. | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply