Debugging installed libraries - c

I have installed mbedtls on my wsl Ubuntu:
sudo apt-get install -y libmbedtls-dev
But I would like to debug through library code. I have downloaded source files from git repository. But does it means I must build libraries with -g option which allows produce debugging information?

Related

Unable to locate package openssl-dev

I'm trying to install the ROOT CERN packages on linux, using Ubuntu 18.04, and whenever I get into the prerequisites download, with this command:
sudo apt-get install dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev libxft-dev libxext-dev python openssl-dev
I get the following output:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package openssl-dev
I've tried correcting this by configurating my repository as was suggested in this thread, yet the problem still persisted.
Would like to know how is it possible to fix this. Thank you.
Edit:
The complete output of the sudo apt update command is:
Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
I've also tried installing the libssl-dev package with sudo apt install libssl1.0-dev and the outcome remains unchanged.
openssl-dev is for RedHat and CentOS systems.
Install openssl and libssl-dev instead, which works on Ubuntu and Debian.
sudo apt-get install openssl libssl-dev
Type: sudo apt install libssl-dev
without the version number, that worked for me.
I am using Ubuntu 20.04.1 LTS.
May you can install it by using def command (if it's available!)
eg.: sudo dnf install openssl-devel

failed to locate system libraries for CCS operation ibusb-0.1.so.4

i have installed libsub with sudo apt-get install libusb-0.1-0-dev
but i get this error while installing CCS
failed to locate system libraries for CCS operation ibusb-0.1.so.4
it was solved with the following installation
sudo apt-get install libusb-0.1-4

How to install apt-get without having Makefile and GCC?

I want to install "gcc", but don't have make, apt-get and yum. I am using "mlinux" as OS for gateway.

unable execute arm-cc on docker images ( ubuntu 12.04 base )

i want execute arm-cc binary on docker images (ubuntu 12.04 base)
but can't
the process was below ...
download arm CC using wget ( https://launchpad.net/linaro-toolchain-binaries/trunk/2013.10/+download/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux.tar.xz )
uncompress the file
execute arm cc (arm-linux-gnueabi-gcc)
arm cc file is symbolic link
arm-linux-gnueabihf-gcc -> arm-linux-gnueabihf-gcc-4.8.2
and error occurred ...
gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabihf-gcc: Command not found
what should I do ?
Docker file contents is below
Ubuntu as base image
FROM ubuntu:12.04
MAINTAINER ...
update ubuntu image
RUN apt-get update
install essential package
RUN apt-get -y install vim
RUN apt-get -y install wget
RUN apt-get -y install bzip2
RUN apt-get -y install git
RUN apt-get -y install patch
RUN apt-get -y install make
RUN apt-get -y install kernel-package libncurses5-dev fakeroot wget bzip2 build-essential udev
set environment variable so I know I'm in a container
ENV ARM_CROSS_COMPILER TRUE
End Dockerfile
SOLVED
my machine is 64-bit and armcc executable is 32-bit.
when i was execute it on native linux, not occurs problem.
but on docker, error occurred. i tried 64-bit compiler execution, well
running.

How to install the latest version of octave in ubuntu 14.04

sudo apt-get build-dep octave is not working. The error message is "E: Build-Depends dependency for octave cannot be satisfied because the package automake cannot be found". I have modified the /etc/apt/sources.list file with deb replaced by deb-src. Even when I try sudo apt-get install octave, an error is displayed that the package is not located.
Octave packages http://wiki.octave.org/Octave_for_Debian_systems
Many Octave packages are also distributed by your Linux distribution. These are tested to work the best with your Octave version. For example:
sudo apt-get install octave-control octave-image octave-io octave-optim octave-signal octave-statistics
Octave's Personal Package Archive (PPA) for Ubuntu
sudo apt-add-repository ppa:octave/stable
sudo apt-get update
sudo apt-get install octave
Or
sudo apt-get autoclean
You can also Try with
wget ftp://ftp.gnu.org/gnu/octave/octave-4.0.0.tar.bz2
tar -xvf octave-4.0.0.tar.bz2
cd octave-4.0.0
./configure
make
sudo make install
More version are available at ftp://ftp.gnu.org/gnu/octave
Or
Adding a line to your /etc/apt/sources.list
amd64: http://packages.ubuntu.com/trusty/amd64/libgraphicsmagick3/filelist
i386: http://packages.ubuntu.com/trusty/i386/libgraphicsmagick3/download

Resources