[Issue 16494] New: cannot find source code for runtime library after brew install in custom directory

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Sep 14 14:43:33 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16494

          Issue ID: 16494
           Summary: cannot find source code for runtime library after brew
                    install in custom directory
           Product: D
           Version: D2
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: timothee.cour2 at gmail.com

When installing brew (via linuxbrew) in a nonstandard directory, dmd can't find
it's config file.

Would be nice if error message pointed out the algorithm to search for
dmd.conf, and the best way to fix this

install_dmd_custom.sh:
```
HOME_temp=/tmp/somedir/
HOME_old=$HOME
mkdir -p $HOME_temp

install_linuxbrew(){
  HOME=$HOME_temp
  ruby -e "$(curl -fsSL
https://raw.githubusercontent.com/Linuxbrew/install/master/install)"
  HOME=$HOME_old
}

export HOMEBREW_PREFIX=$HOME_temp/.linuxbrew/
PATH="$HOMEBREW_PREFIX/bin:$PATH"

ls $HOMEBREW_PREFIX/bin/brew || install_linuxbrew
brew install dmd

rdmd some_file.d
#cannot find source code for runtime library after brew install in custom
directory
```

dmd -v|grep Config: Config file: (null)

--


More information about the Digitalmars-d-bugs mailing list