How to list exported functions in a shared lib on Ubuntu


Question I have just built a shared lib on Ubuntu, and when I attempt to use the function, the application that loads the library is reporting 'xxx' symbol not found. I want to check (i.e. list) the functions that are exported by my library so I can investigate this issue further. Relevant details: OS: Ubuntu 9.10 compiler: gcc 4.4.1 linker: GNU ld 2.20 Answer Try the nm utility. GNU nm lists the symbols from object files objfile.…
Read more ⟶

No schema has been selected to create in ... error


Question I am working on a Linux server that is hosted on Amazon's server and I have completely set up the server. The final thing I am trying to do is host one of my old projects that I created on the server which is in the Flask framework. I am trying to run the Python file that sets up my database that is required to run my project. I am using a virtual machine inside the server that will run my project and every time I run the command I get the following error:…
Read more ⟶

gcc: error trying to exec 'cc1plus': execvp: No such file or directory


Question I'm trying to install this python module, which requires compilation (on Ubuntu 16.04). I'm struggling to understand exactly what's causing it stall; what am I missing? (xenial)chris@localhost:~$ pip install swigibpy Collecting swigibpy Using cached swigibpy-0.4.1.tar.gz Building wheels for collected packages: swigibpy Running setup.py bdist_wheel for swigibpy ... error Complete output from command /home/chris/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-162vhh_i/swigibpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmptqb6ctskpip-wheel- --python-tag cp35: running bdist_wheel running build running build_py creating build creating build/lib.…
Read more ⟶

How to solve "Kernel panic - not syncing - Attempted to kill init" -- without erasing any user data [closed]


Question Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. </div> This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered. Closed 6 years ago.…
Read more ⟶

Vagrant up error in headless Ubuntu: The guest machine entered an invalid state while waiting for it to boot


Question I need to install vagrant in headless ubuntu (Ubuntu 12.04.2 LTS-64 Bit). Vagrant ver-v1.3.0 and Virtual box- 4.2.18. After adding the vagrant package box, when I am giving "vagrant up" command, am getting the following error: Bringing machine 'default' up with 'virtualbox' provider... [default] Clearing any previously set forwarded ports... [default] Creating shared folders metadata... [default] Clearing any previously set network interfaces... [default] Preparing network interfaces based on configuration... [default] Forwarding ports.…
Read more ⟶

Can't add user to docker group


Question I'm trying to set docker up on a new system, and when running docker info I get: docker -v => Docker version 18.09.5, build e8ff056 docker info => Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.39/info: dial unix /var/run/docker.sock: connect: permission denied Following the docs, I've tried: sudo usermod -a -G docker $USER Which returns no output. When I then run groups:…
Read more ⟶

Can I install gems with apt-get on Ubuntu?


Question I am new to Ruby and just diving in. The Ruby tutorial says I should get the packaging system from here: http://rubyforge.org/frs/?group_id=126 I am on Ubuntu Linux. The page has a .tar and a .gem option for downloading. Which should I download? Also, are gems exactly analogous to Java jars? And why do I need the gem packaging system if I can just download gems one by one as they are needed?…
Read more ⟶