gitfs on centos 6 ???

108 views
Skip to first unread message

Dimitri Maziuk

unread,
Aug 14, 2017, 1:57:52 PM8/14/17
to salt-...@googlegroups.com

What do I need to install to make gitfs work again on centos
6/salt-2017.7? I don't see pythong27-pygit2 anywhere.

--
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu

signature.asc

Daniel Wallace

unread,
Aug 14, 2017, 2:00:17 PM8/14/17
to Salt-users
You will need to pip install them.

https://github.com/saltstack/salt/issues/42525
> --
> You received this message because you are subscribed to the Google Groups "Salt-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/1b52c246-4c98-a62a-9630-ff6e2c7fe4f6%40bmrb.wisc.edu.
> For more options, visit https://groups.google.com/d/optout.

Dimitri Maziuk

unread,
Aug 14, 2017, 2:06:19 PM8/14/17
to salt-...@googlegroups.com
On 08/14/2017 01:00 PM, Daniel Wallace wrote:
> You will need to pip install them.

Any other options? --

> Collecting pygit2
> Downloading pygit2-0.26.0.tar.gz (457kB)
> 100% |████████████████████████████████| 460kB 1.1MB/s
> Complete output from command python setup.py egg_info:
> Package libffi was not found in the pkg-config search path.
> Perhaps you should add the directory containing `libffi.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'libffi' found
> Package libffi was not found in the pkg-config search path.
> Perhaps you should add the directory containing `libffi.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'libffi' found
> Package libffi was not found in the pkg-config search path.
> Perhaps you should add the directory containing `libffi.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'libffi' found
> Package libffi was not found in the pkg-config search path.
> Perhaps you should add the directory containing `libffi.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'libffi' found
> Package libffi was not found in the pkg-config search path.
> Perhaps you should add the directory containing `libffi.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'libffi' found
> unable to execute 'gcc': No such file or directory
> unable to execute 'gcc': No such file or directory
>
> No working compiler found, or bogus compiler options
> passed to the compiler from Python's distutils module.
> See the error messages above.
> (If they are about -mno-fused-madd and you are on OS/X 10.8,
> see http://stackoverflow.com/questions/22313407/ .)
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> File "/tmp/pip-build-3zkTsJ/pygit2/setup.py", line 202, in <module>
> **extra_args)
> File "/usr/lib64/python2.7/distutils/core.py", line 111, in setup
> _setup_distribution = dist = klass(attrs)
> File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 317, in __init__
> self.fetch_build_eggs(attrs['setup_requires'])
> File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 372, in fetch_build_eggs
> replace_conflicting=True,
> File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 846, in resolve
> dist = best[req.key] = env.best_match(req, ws, installer)
> File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1118, in best_match
> return self.obtain(req, installer)
> File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1130, in obtain
> return installer(requirement)
> File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 440, in fetch_build_egg
> return cmd.easy_install(req)
> File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 673, in easy_install
> return self.install_item(spec, dist.location, tmpdir, deps)
> File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 699, in install_item
> dists = self.install_eggs(spec, download, tmpdir)
> File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 880, in install_eggs
> return self.build_and_install(setup_script, setup_base)
> File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1119, in build_and_install
> self.run_setup(setup_script, setup_base, args)
> File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1107, in run_setup
> raise DistutilsError("Setup script exited with %s" % (v.args[0],))
> distutils.errors.DistutilsError: Setup script exited with 1
>
> ----------------------------------------
> Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-3zkTsJ/pygit2/
signature.asc

Daniel Wallace

unread,
Aug 14, 2017, 2:14:27 PM8/14/17
to Salt-users
You don't have the system libraries installed.

> Perhaps you should add the directory containing `libffi.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'libffi' found
> Package libffi was not found in the pkg-config search path.
> Perhaps you should add the directory containing `libffi.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'libffi' found
> Package libffi was not found in the pkg-config search path.
> Perhaps you should add the directory containing `libffi.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'libffi' found
> Package libffi was not found in the pkg-config search path.
> Perhaps you should add the directory containing `libffi.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'libffi' found
> Package libffi was not found in the pkg-config search path.
> Perhaps you should add the directory containing `libffi.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'libffi' found
> unable to execute 'gcc': No such file or directory
> unable to execute 'gcc': No such file or directory


Install gcc, libffi-devel and anything else it comes back and says you need.
> --
> You received this message because you are subscribed to the Google Groups "Salt-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/0fe1b63c-ce20-e0d0-2bde-7d7c47f03f29%40bmrb.wisc.edu.

Dimitri Maziuk

unread,
Aug 14, 2017, 2:21:52 PM8/14/17
to salt-...@googlegroups.com
On 08/14/2017 01:14 PM, Daniel Wallace wrote:
> You don't have the system libraries installed.

I know. There is a reason I don't have gcc and the rest installed on
this box.

There is a reason I am not using perl/cpan for my sysadmin scripts,
either, but it seems I should reconsider. At least perl 4 scripts still
run in perl 5...
signature.asc

Loren Gordon

unread,
Aug 14, 2017, 3:51:03 PM8/14/17
to Salt-users
I dunno if it helps in this case, but I often find I need to install gcc and associated packages to get python packages to install. I then run the command below to remove gcc and all its deps.

yum -y remove gcc --setopt=clean_requirements_on_remove=1

Might be worth a shot.

-Loren

Dimitri Maziuk

unread,
Aug 14, 2017, 4:46:52 PM8/14/17
to salt-...@googlegroups.com
On 08/14/2017 02:51 PM, Loren Gordon wrote:
> I dunno if it helps in this case, but I often find I need to install gcc
> and associated packages to get python packages to install. I then run the
> command below to remove gcc and all its deps.
>
> yum -y remove gcc --setopt=clean_requirements_on_remove=1
>
> Might be worth a shot.

Us old people who failed to build cpan modules on solaris back in the
previous century have had this t-shirt for a long time. One of the
python's selling points was "batteries included" so you won't need to
deal with that crap. (Not that anybody really believed the glossy
brochure...)

I guess it's no gitfs for me. I wonder what else is broken on python-2.6
hosts that I haven't found yet.
signature.asc

Ethan Erchinger

unread,
Aug 15, 2017, 10:33:34 AM8/15/17
to Salt-users
Personally I just make packages in situations like this on a separate build host. Check out fpm, it's your friend in this case.

Dmitri Maziuk

unread,
Aug 15, 2017, 10:38:53 AM8/15/17
to salt-...@googlegroups.com
On 2017-08-15 09:33, Ethan Erchinger wrote:
> Personally I just make packages in situations like this on a separate build host. Check out fpm, it's your friend in this case.

Personally I just avoid software whose updates break core functionality
without notice.

Dima

Wedge Shot

unread,
Aug 17, 2017, 7:55:34 PM8/17/17
to Salt-users
Do yourself a favor and get off running on CentOS6 for master especially running the 2017.7.X releases....  We just migrated today(successfully) to a Ubuntu 16.04 server because of this and crashing of salt-master taking the entire VM down.

Dmitri Maziuk

unread,
Aug 18, 2017, 11:58:11 AM8/18/17
to salt-...@googlegroups.com
On 2017-08-17 18:55, Wedge Shot wrote:
> Do yourself a favor and get off running on CentOS6 for master especially
> running the 2017.7.X releases.... We just migrated today(successfully)
> to a Ubuntu 16.04 server because of this and crashing of salt-master
> taking the entire VM down.

I've been looking at freebsd lately: zfs in the kernel, carp, has, no
systemd... there's gotta be a flip side to it I'm sure. ;)

Some of us work with physical machinery that comes with vendor-provided
specs. And specialized software that doesn't run "in the vapour".

Dima
Reply all
Reply to author
Forward
0 new messages