You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both dub and dmd were installed from dlang rather from zypper.
DUB version 1.29.0, built on May 13 2022
DMD64 D Compiler v2.100.0
OpenSUSE Leap 15.3
cc (SUSE Linux) 7.5.0
DELL7720:~/junk> dub fetch drepl
Please note that you need to use dub run <pkgname> or add it to dependencies of your package to actually use/run it. dub does not do actual installation of packages outside of its own ecosystem.
DELL7720:~/junk> dub run drepl
Building package drepl in /home/oy753c/.dub/packages/drepl-0.2.1/drepl/
Performing "debug" build using /home/oy753c/.bin/dmd2/linux/bin64/dmd for x86_64.
colorize 1.0.5: target for configuration "library" is up to date.
stdx-allocator 2.77.2: target for configuration "library" is up to date.
libdparse 0.8.7: target for configuration "library" is up to date.
drepl 0.2.1: building configuration "console"...
Running pre-build commands...
cc: error: C/linenoise.c: No such file or directory
cc: fatal error: no input files
compilation terminated.
Command failed with exit code 1: cd /home/oy753c/.dub/packages/drepl-0.2.1/drepl; [ -f C/linenoise.o ] || cc -c -fPIC -o C/linenoise.o C/linenoise.c
The text was updated successfully, but these errors were encountered:
I worked around it by 1) forking, cloning and copying the C/ directory from linenoise to the drepl directory, and 2) manually compiling the package in ~/.dub/packages/linenoise-1.1.0_1.0.0/linenoise.
I guess the linenoise dub.sdl instructions might be a little fishy.
katyukha
added a commit
to katyukha/dlang-linenoise
that referenced
this issue
Feb 5, 2023
Both
dub
anddmd
were installed from dlang rather from zypper.DUB version 1.29.0, built on May 13 2022
DMD64 D Compiler v2.100.0
OpenSUSE Leap 15.3
cc (SUSE Linux) 7.5.0
DELL7720:~/junk> dub fetch drepl
Please note that you need to use
dub run <pkgname>
or add it to dependencies of your package to actually use/run it. dub does not do actual installation of packages outside of its own ecosystem.DELL7720:~/junk> dub run drepl
Building package drepl in /home/oy753c/.dub/packages/drepl-0.2.1/drepl/
Performing "debug" build using /home/oy753c/.bin/dmd2/linux/bin64/dmd for x86_64.
colorize 1.0.5: target for configuration "library" is up to date.
stdx-allocator 2.77.2: target for configuration "library" is up to date.
libdparse 0.8.7: target for configuration "library" is up to date.
drepl 0.2.1: building configuration "console"...
Running pre-build commands...
cc: error: C/linenoise.c: No such file or directory
cc: fatal error: no input files
compilation terminated.
Command failed with exit code 1: cd /home/oy753c/.dub/packages/drepl-0.2.1/drepl; [ -f C/linenoise.o ] || cc -c -fPIC -o C/linenoise.o C/linenoise.c
The text was updated successfully, but these errors were encountered: