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

Documentation: Ubuntu and Debian HTML pages have double line breaks so apt-get install x \ ... (next line) is treated as a new command, which fails #87

Open
Johnsel opened this issue Sep 11, 2024 · 2 comments
Milestone

Comments

@Johnsel
Copy link
Contributor

Johnsel commented Sep 11, 2024

Copied from https://www.ngscopeclient.org/manual/GettingStarted.html

johnsimons@john-ubuntu2404-scopehal:~$ sudo apt install build-essential git cmake pkgconf libgtkmm-3.0-dev \ 
libcairomm-1.0-dev libsigc++-2.0-dev libyaml-cpp-dev catch2 libglfw3-dev curl xzip 
[sudo] password for johnsimons: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package  
libcairomm-1.0-dev: command not found

If you look closely in a text program you will see that tex sneakily prefixed the \ with a \LF and postfixed it with another \LF thus putting the libcairomm-1.0-dev on a new line and breaking the multiline apt-get. This issue is also present for Debian, and possibly other (all?) OS'

@Johnsel
Copy link
Contributor Author

Johnsel commented Sep 11, 2024

It worked fine for Fedora 40 using Firefox (which I used on all platforms)

Scratch that.

liveuser@localhost-live:~$ sudo dnf install git gcc g++ cmake make pkgconf cairomm-devel gtk3-devel \ 
libsigc++30-devel yaml-cpp-devel catch-devel glfw-devel 
Fedora 40 - x86_64                              4.3 MB/s |  20 MB     00:04    
Fedora 40 openh264 (From Cisco) - x86_64        945  B/s | 1.4 kB     00:01    
Fedora 40 - x86_64 - Updates                     11 MB/s | 9.9 MB     00:00    
Package git-2.44.0-1.fc40.x86_64 is already installed.
Package pkgconf-2.1.0-1.fc40.x86_64 is already installed.
No match for argument:  
Error: Unable to find a match:  
bash: libsigc++30-devel: command not found...

@azonenberg azonenberg transferred this issue from ngscopeclient/scopehal-apps Sep 12, 2024
@azonenberg azonenberg added this to the v0.1 milestone Oct 29, 2024
@cdwijs
Copy link

cdwijs commented Nov 3, 2024

Section 3.3 (Windows) Step 4. (Install Vulkan dependencies) is also affected:
pacman -S mingw-w64-ucrt-x86_64-vulkan-headers mingw-w64-ucrt-x86_64-vulkan-loader mingw-w64-ucrt-x86_64-shaderc \
mingw-w64-ucrt-x86_64-glslang mingw-w64-ucrt-x86_64-spirv-tools

Resulting error in Msys:
cedric@DESKTOP-LRFL83R UCRT64 ~
$ pacman -S mingw-w64-ucrt-x86_64-vulkan-headers mingw-w64-ucrt-x86_64-vulkan-loader mingw-w64-ucrt-x86_64-shaderc
mingw-w64-ucrt-x86_64-glslang mingw-w64-ucrt-x86_64-spirv-tools
error: target not found:
-bash: mingw-w64-ucrt-x86_64-glslang: command not found

Copying and pasting both lines separate does work correctly:
cedric@DESKTOP-LRFL83R UCRT64 ~
$ pacman -S mingw-w64-ucrt-x86_64-vulkan-headers mingw-w64-ucrt-x86_64-vulkan-loader mingw-w64-ucrt-x86_64-shaderc mingw-w64-ucrt-x86_64-glslang mingw-w64-ucrt-x86_64-spirv-tools
resolving dependencies...
looking for conflicting packages...

Packages (5) mingw-w64-ucrt-x86_64-glslang-14.3.0-1 mingw-w64-ucrt-x86_64-shaderc-2024.1-1 mingw-w64-ucrt-x86_64-spirv-tools-3~1.3.290.0-1
mingw-w64-ucrt-x86_64-vulkan-headers-1.3.290.0-1 mingw-w64-ucrt-x86_64-vulkan-loader-1.3.290.0-1

Total Download Size: 9.65 MiB
Total Installed Size: 90.13 MiB

:: Proceed with installation? [Y/n]

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

3 participants