www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - dmd installation question

reply Dibyendu Majumdar <d.majumdar gmail.com> writes:
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
Jan 15
next sibling parent Dibyendu Majumdar <d.majumdar gmail.com> writes:
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.
Jan 15
prev sibling next sibling parent reply Brad Anderson <eco gnuk.net> writes:
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.
Jan 15
parent reply Brad Anderson <eco gnuk.net> writes:
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.
Jan 15
parent reply Dibyendu Majumdar <d.majumdar gmail.com> writes:
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.
Jan 16
parent reply Dibyendu Majumdar <d.majumdar gmail.com> writes:
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.
Jan 16
parent reply Mike Parker <aldacron gmail.com> writes:
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?
Jan 16
parent Dibyendu Majumdar <d.majumdar gmail.com> writes:
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.
Jan 17
prev sibling parent Brad Anderson <eco gnuk.net> writes:
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.
Jan 17