digitalmars.D.learn - D in SUSE Enterprise Linux
- Vino (18/18) May 01 2018 Hi All,
- rikki cattermole (3/29) May 01 2018 Does this work?
- Vino (10/40) May 01 2018 Hi Rikki,
- Jonathan M Davis (6/47) May 01 2018 That sounds like your /tmp is mounted with noexec. which won't work with
- Vino (9/35) May 01 2018 Hi Jonathan,
- rikki cattermole (3/39) May 01 2018 Modify rdmd to use another directory which is more acceptable for your
- Joakim (5/31) May 01 2018 Or just set an environment variable like TMP, if you don't want
- Jonathan M Davis (11/48) May 01 2018 Whether it's really a security risk is up for debate, though I'm sure th...
Hi All, Request your help, trying to execute the below program in SUSE Linux but there is no output Code import std.stdio; void main() { writeln("Test"); } DMD Version : DMD64 D Compiler v2.079.1 Package installed : dmd-2.079.1-0.openSUSE.x86_64.rpm rdmd 777 <program name> Both ways there is on output From, Vino.B
May 01 2018
On 02/05/2018 2:56 AM, Vino wrote:Hi All, Request your help, trying to execute the below program in SUSE Linux but there is no output Code import std.stdio; void main() { writeln("Test"); } DMD Version : DMD64 D Compiler v2.079.1 Package installed : dmd-2.079.1-0.openSUSE.x86_64.rpm <program name> Both ways there is on output From, Vino.BDoes this work? $ dmd -run foo.d
May 01 2018
On Tuesday, 1 May 2018 at 15:04:43 UTC, rikki cattermole wrote:On 02/05/2018 2:56 AM, Vino wrote:Hi Rikki, No, it is not working, rather getting an error, and the user i executed is the root user. if i compile the program as dmd <program name> and then execute it as ./<program name> it works fine, so is rdmd not supported in Linux. Error: /tmp/dmd_runqfz3ul: Permission denied From, Vino.BHi All, Request your help, trying to execute the below program in SUSE Linux but there is no output Code import std.stdio; void main() { writeln("Test"); } DMD Version : DMD64 D Compiler v2.079.1 Package installed : dmd-2.079.1-0.openSUSE.x86_64.rpm rdmd 777 <program name> Both ways there is on output From, Vino.BDoes this work? $ dmd -run foo.d
May 01 2018
On Tuesday, May 01, 2018 15:18:12 Vino via Digitalmars-d-learn wrote:On Tuesday, 1 May 2018 at 15:04:43 UTC, rikki cattermole wrote:That sounds like your /tmp is mounted with noexec. which won't work with rdmd or any other program that expects to be able to create a file in /tmp and run it. Presumably, you'll need to change the settings in /etc/fstab so that /tmp is not mounted with noexec. - Jonathan M DavisOn 02/05/2018 2:56 AM, Vino wrote:Hi Rikki, No, it is not working, rather getting an error, and the user i executed is the root user. if i compile the program as dmd <program name> and then execute it as ./<program name> it works fine, so is rdmd not supported in Linux. Error: /tmp/dmd_runqfz3ul: Permission deniedHi All, Request your help, trying to execute the below program in SUSE Linux but there is no output Code import std.stdio; void main() { writeln("Test"); } DMD Version : DMD64 D Compiler v2.079.1 Package installed : dmd-2.079.1-0.openSUSE.x86_64.rpm rdmd 777 <program name> Both ways there is on output From, Vino.BDoes this work? $ dmd -run foo.d
May 01 2018
On Tuesday, 1 May 2018 at 15:42:38 UTC, Jonathan M Davis wrote:On Tuesday, May 01, 2018 15:18:12 Vino via Digitalmars-d-learn wrote:Hi Jonathan, Yes the /tmp is mounted with noexec option , we should not change this option as it is a security violation so is there any other way we can make it work, it tried setting the tmp env variable to a local FS which is mounted with the noexec option but it did not work. From, Vino.BOn Tuesday, 1 May 2018 at 15:04:43 UTC, rikki cattermole wrote:That sounds like your /tmp is mounted with noexec. which won't work with rdmd or any other program that expects to be able to create a file in /tmp and run it. Presumably, you'll need to change the settings in /etc/fstab so that /tmp is not mounted with noexec. - Jonathan M DavisOn 02/05/2018 2:56 AM, Vino wrote:Hi Rikki, No, it is not working, rather getting an error, and the user i executed is the root user. if i compile the program as dmd <program name> and then execute it as ./<program name> it works fine, so is rdmd not supported in Linux. Error: /tmp/dmd_runqfz3ul: Permission denied[...]Does this work? $ dmd -run foo.d
May 01 2018
On 02/05/2018 3:51 AM, Vino wrote:On Tuesday, 1 May 2018 at 15:42:38 UTC, Jonathan M Davis wrote:Modify rdmd to use another directory which is more acceptable for your setup.On Tuesday, May 01, 2018 15:18:12 Vino via Digitalmars-d-learn wrote:Hi Jonathan, Yes the /tmp is mounted with noexec option , we should not change this option as it is a security violation so is there any other way we can make it work, it tried setting the tmp env variable to a local FS which is mounted with the noexec option but it did not work. From, Vino.BOn Tuesday, 1 May 2018 at 15:04:43 UTC, rikki cattermole wrote:That sounds like your /tmp is mounted with noexec. which won't work with rdmd or any other program that expects to be able to create a file in /tmp and run it. Presumably, you'll need to change the settings in /etc/fstab so that /tmp is not mounted with noexec. - Jonathan M DavisOn 02/05/2018 2:56 AM, Vino wrote:Hi Rikki, No, it is not working, rather getting an error, and the user i executed is the root user. if i compile the program as dmd <program name> and then execute it as ./<program name> it works fine, so is rdmd not supported in Linux. Error: /tmp/dmd_runqfz3ul: Permission denied[...]Does this work? $ dmd -run foo.d
May 01 2018
On Tuesday, 1 May 2018 at 16:02:03 UTC, rikki cattermole wrote:On 02/05/2018 3:51 AM, Vino wrote:Or just set an environment variable like TMP, if you don't want to append the flag Jonathan gave each time, as rdmd simply calls std.file.tempDir: https://dlang.org/phobos/std_file.html#.tempDirOn Tuesday, 1 May 2018 at 15:42:38 UTC, Jonathan M Davis wrote:Modify rdmd to use another directory which is more acceptable for your setup.On Tuesday, May 01, 2018 15:18:12 Vino via Digitalmars-d-learn wrote:Hi Jonathan, Yes the /tmp is mounted with noexec option , we should not change this option as it is a security violation so is there any other way we can make it work, it tried setting the tmp env variable to a local FS which is mounted with the noexec option but it did not work. From, Vino.B[...]That sounds like your /tmp is mounted with noexec. which won't work with rdmd or any other program that expects to be able to create a file in /tmp and run it. Presumably, you'll need to change the settings in /etc/fstab so that /tmp is not mounted with noexec. - Jonathan M Davis
May 01 2018
On Tuesday, May 01, 2018 15:51:14 Vino via Digitalmars-d-learn wrote:On Tuesday, 1 May 2018 at 15:42:38 UTC, Jonathan M Davis wrote:Whether it's really a security risk is up for debate, though I'm sure that concerns over that would be why /tmp is mounted with noexec on your system. Looking at rdmd --help, it does list a --tmpdir flag, so if you have another directory that is not mounted noexec where you would consider it acceptable to have temporary files be created and executed, then you can use --tmpdir to tell rdmd to use it. So, presumably, the shebang line would then be something like though I haven't tested it. - Jonathan M DavisOn Tuesday, May 01, 2018 15:18:12 Vino via Digitalmars-d-learn wrote:Hi Jonathan, Yes the /tmp is mounted with noexec option , we should not change this option as it is a security violation so is there any other way we can make it work, it tried setting the tmp env variable to a local FS which is mounted with the noexec option but it did not work.On Tuesday, 1 May 2018 at 15:04:43 UTC, rikki cattermole wrote:That sounds like your /tmp is mounted with noexec. which won't work with rdmd or any other program that expects to be able to create a file in /tmp and run it. Presumably, you'll need to change the settings in /etc/fstab so that /tmp is not mounted with noexec. - Jonathan M DavisOn 02/05/2018 2:56 AM, Vino wrote:Hi Rikki, No, it is not working, rather getting an error, and the user i executed is the root user. if i compile the program as dmd <program name> and then execute it as ./<program name> it works fine, so is rdmd not supported in Linux. Error: /tmp/dmd_runqfz3ul: Permission denied[...]Does this work? $ dmd -run foo.d
May 01 2018