我有以下文件,名为set_env_lin.sh
:
#!/bin/bash
export SLACK_WEBHOOK_DEV=some_value_1
export SLACK_WEBHOOK_REAL=some_value_2
我按照本指南将其设置为 bash 文件,但是当 y call 时echo $SLACK_WEBHOOK_REAL
,我没有设置任何值。
我究竟做错了什么?
我正在尝试按照本教程在Ubuntu 18.04上安装pgAdmin4,但我收到以下命令错误:pip install pgadmin4-2.1-py2.py3-none-any.whl
src/_fastmath.c:31:10: fatal error: Python.h: No such file or directory
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/home/hugolvc/pgAdmin4/pgAdmin4/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-Eiam7O/pycrypto/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-record-xfTq9G/install-record.txt --single-version-externally-managed --compile --install-headers /home/hugolvc/pgAdmin4/pgAdmin4/include/site/python2.7/pycrypto" failed with error code 1 in /tmp/pip-install-Eiam7O/pycrypto/
我只是一步一步地按照教程。
编辑
结果python --version
是Python 2.7.15rc1
,但我也安装了 3.6 和 3.7。
结果locate x86_64-linux-gnu-gcc
是:
/usr/bin/x86_64-linux-gnu-gcc
/usr/bin/x86_64-linux-gnu-gcc-5
/usr/bin/x86_64-linux-gnu-gcc-7
/usr/bin/x86_64-linux-gnu-gcc-ar
/usr/bin/x86_64-linux-gnu-gcc-ar-5
/usr/bin/x86_64-linux-gnu-gcc-ar-7
/usr/bin/x86_64-linux-gnu-gcc-nm
/usr/bin/x86_64-linux-gnu-gcc-nm-5
/usr/bin/x86_64-linux-gnu-gcc-nm-7
/usr/bin/x86_64-linux-gnu-gcc-ranlib
/usr/bin/x86_64-linux-gnu-gcc-ranlib-5
/usr/bin/x86_64-linux-gnu-gcc-ranlib-7
/usr/share/man/man1/x86_64-linux-gnu-gcc-5.1.gz
/usr/share/man/man1/x86_64-linux-gnu-gcc-7.1.gz
/usr/share/man/man1/x86_64-linux-gnu-gcc-ar-5.1.gz
/usr/share/man/man1/x86_64-linux-gnu-gcc-ar-7.1.gz
/usr/share/man/man1/x86_64-linux-gnu-gcc-ar.1.gz
/usr/share/man/man1/x86_64-linux-gnu-gcc-nm-5.1.gz
/usr/share/man/man1/x86_64-linux-gnu-gcc-nm-7.1.gz
/usr/share/man/man1/x86_64-linux-gnu-gcc-nm.1.gz
/usr/share/man/man1/x86_64-linux-gnu-gcc-ranlib-5.1.gz
/usr/share/man/man1/x86_64-linux-gnu-gcc-ranlib-7.1.gz
/usr/share/man/man1/x86_64-linux-gnu-gcc-ranlib.1.gz
/usr/share/man/man1/x86_64-linux-gnu-gcc.1.gz
结果sudo find / -name "Python.h"
是:
/home/hugolvc/.local/share/Trash/files/Python-3.7.0/Include/Python.h
find: ‘/run/user/1000/gvfs’: Permission denied