I am running Ubuntu 18.04.3 LTS, Python 3.6.9, wx.version: 4.0.7.post2 gtk3 (phoenix) wxWidgets 3.0.5
When I import wx.adv, I get the error
ImportError: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
If I run:
sudo apt-file search libSDL_image-1.2.so.0
I get:
libsdl-image1.2: /usr/lib/x86_64-linux-gnu/libSDL_image-1.2.so.0
libsdl-image1.2: /usr/lib/x86_64-linux-gnu/libSDL_image-1.2.so.0.8.4
What is wrong?
Seems I was missing some libraries :(
I ran
sudo apt-get install git curl libsdl2-mixer-2.0-0 libsdl2-image-2.0-0 libsdl2-2.0-0
and all is fine
Related
I am following this article to install and tried both methods.
Downloading the headless and the .deb methods I run the following commands:
$ ./dropboxd
And the DEB:
$ sudo dpkg -i dropbox_2020.03.04.deb
$ sudo apt -f install
$ dropbox start
For both I'm getting the error:
ImportError: libglapi.so.0:
I'm new to Linux server and I'm a little bit lost. Should I upgrade my server to Ubuntu 20?
I am trying to install wxPython on a new installation of Ubuntu 18.04 using the command
pip3 install wxPython
The build fails with
error: [Errno 2] No such file or directory: 'build/lib.linux-x86_64-3.6/wx/libwx_baseu-3.0.so'
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-30uqzd2e/wxPython/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-hynl659w-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-30uqzd2e/wxPython/
I have no idea where to look for a solution. Can someone please suggest where I might start
[EDIT 20200424 08:06]
I looked in
/usr/lib/x86_64-linux-gnu/
and
libwx_baseu-3.0.so.0
was absent. I have installed it from this site
It is now present, but the install fails with the same message
I have managed to install wxPython.
I reinstalled Ubuntu 18.04 and performed the following:
sudo apt install make gcc libgtk-3-dev libwebkitgtk-dev libwebkitgtk-3.0-dev libgstreamer-gl1.0-0 freeglut3 freeglut3-dev python-gst-1.0 python3-gst-1.0 libglib2.0-dev ubuntu-restricted-extras libgstreamer-plugins-base1.0-dev
pip3 install wxpython
I guess that when it was failing I had tried many fixes and somewhere along the line something was corrupted or there was a mismatch somewhere.
My solution was based on this answer
I Installed wx.python 4.1.0 yesterday with:
URL=https://extras.wxpython.org/wxPython4/extras/linux/gtk2/ubuntu-18.04
pip install -U -f $URL wxPython
See: https://extras.wxpython.org/wxPython4/extras/ for details.
For gtk3 simply replace gtk2 in the url above.
When I ran the unetStack package in ubuntu18.04, an error was occurred. The error information is "Native library yoda_phy_pa_amd64 not found".
I have install the java environment correctly. And I saw the lib related to yoda_phy_pa_amd64 in unet3.0.0/lib dir named with libyoda_phy_pa_amd64.so. I copy the file to usr/lib and usr/local/lib, it still not works and show the same error information "Native library yoda_phy_pa_amd64 not found".
Install java environment, sudo apt-get install openjdk-8-jre
Obtain the authority of the dir, sudo chmod 777 -R unet-3.0.0
Run the audio demo, bin/unet audio
I expect the audio demo will be work, and show the GUI in the browser. I have successfully run the demo in another computer with ubuntu16.04. But I don't know why it does not works.
This is probably because of a missing dependency for the native library that is used for UnetAudio. UnetAudio requires portaudio as a dependency.
You will need to install portaudio separately using sudo apt-get install portaudio-dev on Ubuntu or using MacPorts or Homebrew on macOS.
This package worked for me!
sudo apt-get install portaudio19-dev python-pyaudio
I have Install php 7.3 and apache2 but when I try to start apache2 , I have this error :
service apache2 start
apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php7.3.load: Cannot load /usr/lib/apache2/modules/libphp7.3.so into server: /usr/lib/apache2/modules/libphp7.3.so: cannot open shared object file: No such file or directory
I really don't know how to resolve this problem, I have tried to remove and reinstall without success.
You're getting that error because the PHP 7.3 library for Apache is not installed.
sudo apt install -y libapache2-mod-php7.3
The above command should fix it.
It solved my problem:
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.3
sudo apt-get install php7.3-cli php7.3-common php7.3-json php7.3-opcache php7.3-mysql php7.3-mbstring php7.3-zip php7.3-fpm php7.3-intl php7.3-simplexml
sudo service apache2 restart
For me the problem was that I did not install apache tools for php.
On arch linux:
yaourt -S php-apache
After that, module appeared in the folder.
The best way not to make a mistake is to follow guide: https://wiki.archlinux.org/title/Apache_HTTP_Server#PHP
I am using the Netbeans IDE, PHP version 7.0 and I have already installed Apache version 2.4.18 and Linux Mint 18.
I have also tried to install the debug files with
sudo apt-get install php7.0-xdebug
How can I proceed further?
Download last stable release of xdebug 2.6.0 :
wget -c "http://xdebug.org/files/xdebug-2.6.0.tgz"
Extract file :
tar -xf xdebug-2.6.0.tgz
cd xdebug-2.6.0/
Build extension
phpize
./configure
make && make install
after finshed compiling i found the binary on path;
/usr/lib/php/20151012/xdebug.so
for find xdebug.so use this comand :
pwd -L xdebug
it print out : /etc/php/7.0/mods-available
then go in directory /etc/php/7.0/mods-available and edit file as superuser nano xdebug.ini file add follows lines:
zend_extension=/usr/lib/php/20151012/xdebug.so
xdebug.show_error_trace = 1
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.profiler_enable=1
sudo systemctl restart apache2.service or sudo /etc/init.d/apache2 restart
http://wiki.netbeans.org/HowToConfigureXDebug