Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What supplies C/linenoise.c to dub run drepl #91

Open
pflagerd opened this issue Oct 10, 2022 · 1 comment
Open

What supplies C/linenoise.c to dub run drepl #91

pflagerd opened this issue Oct 10, 2022 · 1 comment

Comments

@pflagerd
Copy link

pflagerd commented Oct 10, 2022

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

@pflagerd
Copy link
Author

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
See: dlang-community/drepl#91

Also, possibly it is DUB bug, that provides incorrect value for $PACKAGE_DIR variable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant