archlinux

Running a Python script from PHP

。_饼干妹妹 提交于 2021-02-11 16:57:01
问题 I'm trying to run a Python script from PHP using the following command: exec('/usr/bin/python2.7 /srv/http/assets/py/switch.py arg1 arg2'); However, PHP simply doesn't produce any output. Error reporting is set to E_ALL and display_errors is on. Here's what I've tried: I used python2 , /usr/bin/python2 and python2.7 instead of /usr/bin/python2.7 I also used a relative path instead of an absolute path which didn't change anything either. I tried using the commands exec , shell_exec , system .

Running a Python script from PHP

守給你的承諾、 提交于 2021-02-11 16:55:44
问题 I'm trying to run a Python script from PHP using the following command: exec('/usr/bin/python2.7 /srv/http/assets/py/switch.py arg1 arg2'); However, PHP simply doesn't produce any output. Error reporting is set to E_ALL and display_errors is on. Here's what I've tried: I used python2 , /usr/bin/python2 and python2.7 instead of /usr/bin/python2.7 I also used a relative path instead of an absolute path which didn't change anything either. I tried using the commands exec , shell_exec , system .

ncursesw functions not declared

大憨熊 提交于 2021-02-11 09:10:41
问题 I need to use ncurses with unicode support, so I included the following line to my .c file. #include <curses.h> In my makefile I'm using -lncursesw as a flag. When calling functions like get_wch(), it tells me "implicit declaration of function". I'm on Arch Linux so I installed ncurses with pacman -S ncurses. In /usr/include I can find cursesw.h, but it doesn't have functions like get_wch() declared. Under /lib I can find libcursesw.so, so what's the matter? 回答1: Use <curses.h> , read the

ncursesw functions not declared

梦想的初衷 提交于 2021-02-11 09:09:37
问题 I need to use ncurses with unicode support, so I included the following line to my .c file. #include <curses.h> In my makefile I'm using -lncursesw as a flag. When calling functions like get_wch(), it tells me "implicit declaration of function". I'm on Arch Linux so I installed ncurses with pacman -S ncurses. In /usr/include I can find cursesw.h, but it doesn't have functions like get_wch() declared. Under /lib I can find libcursesw.so, so what's the matter? 回答1: Use <curses.h> , read the

ncursesw functions not declared

旧时模样 提交于 2021-02-11 09:08:23
问题 I need to use ncurses with unicode support, so I included the following line to my .c file. #include <curses.h> In my makefile I'm using -lncursesw as a flag. When calling functions like get_wch(), it tells me "implicit declaration of function". I'm on Arch Linux so I installed ncurses with pacman -S ncurses. In /usr/include I can find cursesw.h, but it doesn't have functions like get_wch() declared. Under /lib I can find libcursesw.so, so what's the matter? 回答1: Use <curses.h> , read the

PostgreSQL server fails to start on ArchLinux: FATAL: could not create lockfile »/run/postgresql/.s.PGSQL.5432.lock«

送分小仙女□ 提交于 2021-02-10 09:20:51
问题 I am quite new in Arch and a total beginner in PostgreSQL, so this may be a very basic question. I installed postgresql 11.5-4 from extra and pgadmin 4 from AUR, both seem to be running well. I created a test DB with the following command: initdb -D /home/lg/test-db I got the answer: You can start the db-server using: pg_ctl -D /home/lg/test-db -l logdatei start I tried that and got: pg_ctl -D /home/lg/test-db -l logdatei start waiting for serer to start.... stopped pg_ctl: could not start

JDK path for Android Studio on Linux

為{幸葍}努か 提交于 2021-01-28 08:39:48
问题 I am running Manjaro 17.0.1 I have an issue running android studio . When I run ./studio.sh I have: A graphical error message from Android Studio saying No JDK found. Please validate either STUDIO_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation A console error message which: no java in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl) /usr/bin/dirname: missing operand Try '/usr/bin/dirname --help' for more

What is the current situation for using Vim as IDE for Haskell on Archlinux?

那年仲夏 提交于 2021-01-27 19:13:58
问题 My target, if doable, is to have command completion for Haskell in work in Vim, via YouCompleteMe. In this respect, as you can see in the following, I haven't found a consesus yet about how to get it to work. The latest comments on a relevant issue on YouCompleteMe are not that old, therefore I installed haskell-ide-engine from the AUR (the repo on GitHub is here. However, since it was taking so long (it took 110 minutes!) I checked the PKGBUILD file just to discover this: # ... # Supported

Why does ssh-agent need root access?

自闭症网瘾萝莉.ら 提交于 2021-01-27 06:06:47
问题 I've just installed Archbang, and am trying to clone a Git project of mine, which necessitates SSH keys. I've followed the Github guide to success in the past, on Ubuntu and RedHat boxes, but for some reason it's not working out for me on my new Arch install. I've successfully generated my SSH public/private key pairs with this command: ssh-keygen -t rsa -b 4096 -C "email@address" But when I move on to starting up the SSH agent and adding my public key, I run into issues. [user@arch ~]$ eval

Why does ssh-agent need root access?

╄→尐↘猪︶ㄣ 提交于 2021-01-27 06:06:20
问题 I've just installed Archbang, and am trying to clone a Git project of mine, which necessitates SSH keys. I've followed the Github guide to success in the past, on Ubuntu and RedHat boxes, but for some reason it's not working out for me on my new Arch install. I've successfully generated my SSH public/private key pairs with this command: ssh-keygen -t rsa -b 4096 -C "email@address" But when I move on to starting up the SSH agent and adding my public key, I run into issues. [user@arch ~]$ eval