Debug symbols when using poetry install - python-poetry

Can I install a python package with binary extension compiled with debug symbols when using poetry? For example, this way a gdb or py-spy will get the necessary pretty-printing output

Related

What is the Debian equivalent of RPM's debuginfo and debugsource packages and how can they be found?

In the RPM world, debug symbols and the source code for a package are packaged in RPMs with names ending in debuginfo and debugsource respectively. These can be downloaded using the dnf debuginfo-install command.
In what kind of package will the symbols and the source code be found on a Debian derived system?
Where are these debug packages hosted if not in the main package archives, and what command is used to download and install them if not "apt install"?
There is no systematic distribution of debug symbols. If you want them, typically you would download the package sources with apt-get source and examine the build scripts to figure out how to get a locally built version with debug symbols etc.

Problems compiling with Agda

I installed Adga with 'apt-get install agda-mode'. I've got a working 'Hello World' program written in Agda shown in the screenshot below
But when I go to Agda > Compile it asks me for a 'backend' shown in this second screenshot
I've tried typing in 'GHC' as my back end but it just says '/usr/share/libghc-agda-dev/MAlonzo/src: getDirectoryContents:openDirStream: does not exist (No such file or directory)'
Agda > Load seems to work. How do I get my Agda program to compile?
I personally recommend you to install agda via haskell's Cabal (you can have it by installing haskell-platform, and installing haskell will install ghc). The debian maintained package of agda is currently broken and has issues with the standard library.
cabal update
cabal install agda
you can install both standard library and agda-mode via apt install. After all that (keep in mind that cabal will compile agda, so it will take some time), add the standard library to agda's local settings. Open emacs and load the file to type-check it, or compile it if it has a executable code.

How can I compile Evince3 on Windows using msys2 from Evince3 Source Codes?

Evince3 Source Code link = http://ftp.gnome.org/pub/GNOME/sources/evince/3.26/
I downloaded the Evince3 pdf reader program source code from the above link. and installed msys2 with gcc and gtk3 librares. Evince3 created using gtk3 module in C. but I don't know how to compile source code of Evince3 for using this program on Windows. Is it possible ?
Thanks.
I was curious to learn how to build Gtk apps on windows, so I did it myself, and it took me around one hour.
I followed this guide, https://blogs.gnome.org/nacho/2014/08/01/how-to-build-your-gtk-application-on-windows.
Note that the author used gedit as example. To install evince, you need to download three files from this directory(get 32 or 64 version of install file), https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-evince.
Modify pkgver to 3.26.0 and sha256sum to the hash value in evince-3.26.0.sha256sum in PKGBUILD file, and follow the rest of instructions.
Other way: It's also possible to install pre-built package from mysys2 repo with compiling the source code. Open the msys2 console and give the following command to install Evince.
pacman -S mingw-w64-x86_64-evince

Using Cygwin on windows 8 - missing cygpng15-15.dll

Unfortunately, I really have no idea what I'm doing when it comes to using cygwin. All I need it for is to run a program known as xfig. I have installed cygwin using the instructions provided here. I believe I have done all the steps correctly. However, when I try and start xfig using the command $ xfig &, I am given this error$ /usr/bin/xfig.exe: error while loading shared libraries: cygpng15-15.dll: cannot open shared object file: No such file or directory
I'm not sure what to do about this. Am I missing some sort of library that I need to use cygwin? I am running on Windows 8. Any help is appreciated.
You can start with this command:
cygcheck --package-query cygpng15-15.dll
Which will return a lot of crap:
Found 5 matches for cygpng15-15.dll
cygwin32-libpng-1.5.12-1 - cygwin32-libpng: PNG library for Cygwin 32bit toolchain (installed binaries and support files)
libpng15-debuginfo-1.5.21-2 - libpng15-debuginfo: Debug info for libpng15 (installed binaries and support files)
libpng15-debuginfo-1.5.22-1 - libpng15-debuginfo: Debug info for libpng15 (installed binaries and support files)
libpng15-1.5.21-2 - libpng15: PNG library (installed binaries and support files)
libpng15-1.5.22-1 - libpng15: PNG library (installed binaries and support files)
Removing first line and leaving only package names gives us this:
cygwin32-libpng
libpng15-debuginfo
libpng15-debuginfo
libpng15
libpng15
Assuming you are on 64-bit Windows with 64-bit Cygwin, you can remove any
cygwin32 packages. Also we can ignore debuginfo packages as they only contain
files for /usr/lib/debug. Removing those and duplicates we are left with:
libpng15
Or you can just use my script:
$ apt-cyg searchall cygpng15-15.dll
libpng15

How to install cabal packages with extra libraries under Windows?

I'm trying to install monadiccp with the "RuntimeGecode" flag so that it includes the Gecode libraries:
cabal install monadiccp --flags="RuntimeGecode Debug" --extra-lib-dirs="D:\Programme\Gecode\lib;d:\programme\Gecode\bin" --extra-include-dirs=D:\Programme\Gecode\include\
But that doesn't work, it fails with:
ld.exe: cannot find -lgecodesupport
ld.exe: cannot find -lgecodeset
And so on... See the -v3 log output.
What am I doing wrong? The libraries don't seem any special, so are there some extra steps I need to do in Windows?
Update: The binaries downloadable from gecode.org are compiled with Visual Studio and aren't compatible with gcc (see this answer for the root problem). As suggested by Stephen, I'll try to build Gecode with MinGW/MSYS from source now.

Resources