Should fix this SaltStack error: ``` [ERROR ] Command '/opt/saltstack/salt/salt-pip' failed with return code: 1 [ERROR ] stdout: Collecting mysqlclient Downloading mysqlclient-2.2.0.tar.gz (89 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 89.5/89.5 kB 10.5 MB/s eta 0:00:00 Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'error' [ERROR ] stderr: error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [24 lines of output] /bin/sh: 1: pkg-config: not found /bin/sh: 1: pkg-config: not found Trying pkg-config --exists mysqlclient Command 'pkg-config --exists mysqlclient' returned non-zero exit status 127. Trying pkg-config --exists mariadb Command 'pkg-config --exists mariadb' returned non-zero exit status 127. Traceback (most recent call last): File "/opt/saltstack/salt/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module> main() File "/opt/saltstack/salt/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "/opt/saltstack/salt/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) File "/tmp/pip-build-env-8d1ymhy3/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=['wheel']) File "/tmp/pip-build-env-8d1ymhy3/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires self.run_setup() File "/tmp/pip-build-env-8d1ymhy3/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 338, in run_setup exec(code, locals()) File "<string>", line 154, in <module> File "<string>", line 48, in get_config_posix File "<string>", line 27, in find_package_name Exception: Can not find valid pkg-config name. Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. [ERROR ] retcode: 1 [ERROR ] Failed to install packages: mysqlclient. Error: Collecting mysqlclient Downloading mysqlclient-2.2.0.tar.gz (89 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 89.5/89.5 kB 10.5 MB/s eta 0:00:00 Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'error' error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [24 lines of output] /bin/sh: 1: pkg-config: not found /bin/sh: 1: pkg-config: not found Trying pkg-config --exists mysqlclient Command 'pkg-config --exists mysqlclient' returned non-zero exit status 127. Trying pkg-config --exists mariadb Command 'pkg-config --exists mariadb' returned non-zero exit status 127. Traceback (most recent call last): File "/opt/saltstack/salt/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module> main() File "/opt/saltstack/salt/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "/opt/saltstack/salt/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) File "/tmp/pip-build-env-8d1ymhy3/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=['wheel']) File "/tmp/pip-build-env-8d1ymhy3/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires self.run_setup() File "/tmp/pip-build-env-8d1ymhy3/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 338, in run_setup exec(code, locals()) File "<string>", line 154, in <module> File "<string>", line 48, in get_config_posix File "<string>", line 27, in find_package_name Exception: Can not find valid pkg-config name. Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. [ERROR ] State 'mysql_user.present' was not found in SLS 'e107-dev' Reason: 'mysql_user' __virtual__ returned False: mysql module could not be loaded [ERROR ] State 'mysql_user.present' was not found in SLS 'e107-dev' Reason: 'mysql_user' __virtual__ returned False: mysql module could not be loaded [ERROR ] State 'mysql_database.present' was not found in SLS 'e107-dev' Reason: 'mysql_database' __virtual__ returned False: mysql module could not be loaded ```
e107 is a free and open-source content management system (CMS) which allows you to manage and publish your content online with ease. Developers can save time in building websites and powerful online applications. Users can avoid programming completely! Blogs, websites, intranets – e107 does it all.
Table of Contents
Requirements
Minimum
- A web server (Apache or Microsoft IIS) running PHP 5.6 or newer
- MySQL 4.x or newer, or MariaDB
- FTP access to your web server and an FTP client (such as FileZilla)
- Username and password to your MySQL database
Recommended
- Apache 2.4 or newer on Linux
- PHP 7.4 or newer
- MySQL 5.6 or newer, or MariaDB 10.3 or newer
- A registered domain name
- Access to a server control panel (such as cPanel)
Installation
Standard Installation
- Download e107.
- Unzip/Extract the compressed file onto your desired web root.
This is often a folder called
public_html
. - Point your browser to the
install.php
script (e.g.,https://example.com/subfolder/install.php
) - Follow the installation wizard in your browser.
Git Installation (developer version)
- Run the following commands, replacing '~' with your document root (the parent of
public_html
) and xxx:xxx is the intended owner of your e107 files.cd ~ git clone https://github.com/e107inc/e107.git public_html chown -R xxx:xxx public_html
- Point your browser to the
install.php
script (e.g.,https://example.com/subfolder/install.php
) - Follow the installation wizard in your browser.
Reporting Bugs
Be sure you are using the most recent version of e107 prior to reporting an issue. You may report any bugs and make feature requests e107's GitHub Issues page.
Contributing to Development
- Please submit 1 pull request for each GitHub issue you work on.
- Make sure that only the lines you have changed actually show up in a file-comparison (diff). Some text editors alter every line; this should be avoided.
- It is recommended to configure
git pull
to rebase on the master branch by default to avoid unnecessary merge commits. You can set this up in your copy of the repo's.git/config
file like so:[branch "master"] rebase = true
- See the CONTRIBUTING document for a tutorial on getting started.
Donations
If you like e107 and wish to help it to improve, please consider making a small donation.
- PayPal: donate (at) e107.org
Support
Having trouble getting e107 up and running? Something not working the way you think it should? Unfortunately we don't have time to maintain a full e107 support community ourselves, but there are a few ways to get help.
- If you think you have found a bug, then please see the section below on Reporting Bugs.
- If you need help with how to use e107 or a development question (such as how to create a theme or plugin) - please see our docs.
- You can also seek assistance in the Github Discussions area where you can get friendly community support from other users.
- For real-time technical chat, and community support, please visit us on Gitter.
- For other comments, please use our official community presences on Facebook, and Twitter as well as unofficial community presences on Google+ and Reddit.
License
e107 is released under the terms and conditions of the GNU General Public License (http://www.gnu.org/licenses/gpl.txt)