Giter Club home page Giter Club logo

pkgsrc's Introduction

pkgsrc

pkgsrc is a framework for building software for a variety of UNIX-like systems.

It produces binary packages, which can be managed with tools such as pkgin. pkgsrc is highly configurable, supporting building packages for an arbitrary installation prefix (the default is /usr/pkg), allowing multiple branches to coexist on one machine, a build options framework, and a compiler transformation framework, among other advanced features. Unprivileged use and installation is also supported.

pkgsrc is the default package manager for NetBSD and SmartOS. It's also supported as a first-class option in OmniOS CE and Oasis Linux.

Bootstrapping

To use pkgsrc on operating systems other than NetBSD, you first need to bootstrap:

cd pkgsrc/bootstrap
./bootstrap

Note that this is only for the most simple case, using pkgsrc's defaults.

Please consult bootstrap/README and bootstrap/README.OS for detailed information about bootstrapping.

Building packages

cd pkgsrc/category/package-name
$PREFIX/bin/bmake install

Where $PREFIX is where you've chosen to install packages (typically /usr/pkg)

On NetBSD, bmake is simply the built-in make tool.

To build packages in bulk, tools such as pkgtools/pbulk and pkgtools/pkg_comp can be used.

Community / Troubleshooting

Latest sources

To fetch the main CVS repository:

cvs -d [email protected]:/cvsroot checkout -P pkgsrc

To work in the Git mirror, which is updated every few hours from CVS:

git clone https://github.com/NetBSD/pkgsrc.git

Additional links

pkgsrc's People

Contributors

alarixnia avatar bsiegert avatar coypoop avatar depressed-pho avatar dhgutteridge avatar fcambus avatar fraggerfox avatar he32 avatar iamleot avatar jaapb avatar jdolecek-zz avatar johnnylam88 avatar jperkin avatar jsonn avatar khorben avatar kleink avatar krytarowski avatar mamash avatar msk avatar nikkicoon avatar rillig avatar rsmarples avatar ryoon avatar schmonz avatar spzeidler avatar stoned avatar suominen avatar tnn2 avatar tsutsui avatar wiedi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pkgsrc's Issues

PowerDNS Authorative Server & PowerDNS Recursor need version bump

PowerDNS Authorative Server (powerdns) could use version bump, current 4.0.4 report's following upon startup:

PowerDNS Security Update Mandatory: Upgrade now, see https://doc.powerdns.com/authoritative/security-advisories/powerdns-advisory-2017-04.html

Latest version as of now is 4.1.0:
Changelog

PowerDNS Recursor (pdns-recursor) also has newer version which is 4.1.0:
Changelog

[darwin] Multiple incompatible libraries not upgraded when ffmpeg3 installed

Issue fixed with a "pkgin full-upgrade", however received the following errors from youtube-dl:

ERROR: Reason: Incompatible library version: ffmpeg3 requires version 22.0.0 or later, but libfreetype.6.dylib provides version 20.0.0

ERROR: Reason: Incompatible library version: ffmpeg3 requires version 12.0.0 or later, but libfontconfig.1.dylib provides version 11.0.0

[NOTE: There are probably additional packages that need to be upgraded.]

Expected behavior: Packages required for ffmpeg3 should be upgraded when ffmpeg3 is installed

Remove-all/reset/pristine command?

Hi,

I've done an OS upgrade (to High Sierra, yikes!) and since I had a package fail on me (ffmpeg) and reinstallation didn't fix it, I thought it a good time to clear the decks and reinstall all my packages, but I can't find a command to do that e.g. pkgin reset or the like.

Is there such a command or would blitzing the /opt/pkg directory and reinstalling pkgsrc be the best way forward?

Regards,
iain

[darwin] GNU sed?!

Is there a package that provides a version of GNU sed greater or above 4.0?

[darwin] jq: Enable ONIGURUMA?

When I try to use any of the operators based on regular expressions, I get the following error:

jq was compiled without ONIGURUMA regex libary. match/test/sub and related functions are not available.

[darwin] Conflicting PLIST

A few error messages came up today when I tried to do a full upgrade:

---Sep 30 12:39:43: installing gpgme-1.9.0...
pkg_add: Conflicting PLIST with dirmngr-1.1.1nb2: bin/dirmngr
pkg_add: Can't install dependency gnupg2-[0-9]*
pkg_add: 1 package addition failed
---Sep 30 12:40:09: installing gnupg2-2.2.0nb1...
pkg_add: Conflicting PLIST with dirmngr-1.1.1nb2: bin/dirmngr
pkg_add: 1 package addition failed
---Sep 30 12:41:21: installing neomutt-20170912...
pkg_add: Conflicting PLIST with dirmngr-1.1.1nb2: bin/dirmngr
pkg_add: Can't install dependency gnupg2-[0-9]*
pkg_add: 1 package addition failed

I had to remove dirmngr and re-install neomutt.

py27-pygit2 should depend on git-base

It doesn't look like pygit2 works without the git command line tools being available.
It took me a while to figure this for #56
[ERROR ] The git command line utility is required when using the 'pygit2' gitfs_provider.

sysutils/syslog-ng 3.12.2 restart loop

syslog-ng-3.12.2 is restarting constantly in a smartos (build: 20171207T064532Z) minimal-64-lts 17.4.0 zone (UUID 62aaa296-f143-11e7-bd81-9be1bda071f7).
Tested both w/ custom and example config, /var/log/messages:

Jan 10 10:58:44 localhost syslog-ng[90588]: syslog-ng starting up; version='3.13.2'
Jan 10 10:58:55 localhost syslog-ng[90591]: syslog-ng starting up; version='3.13.2'
Jan 10 10:59:06 localhost syslog-ng[90593]: syslog-ng starting up; version='3.13.2'
 .
 .
 .

et c.

Merge devel/fossil into the LTS branch

Since the official NetBSD fossil repositories use the newer SHA2 hashes, it would be highly useful to have a fossil that supports them on the LTS branch.

AAAA record for pkgsrc.joyent.com?

This is probably the wrong place since it's not a code issue, but I'm unsure where to ask. How do you update IPv6-only smartos instance with pkgin? There is no AAAA record for pkgsrc.joyent.com.. I'm currently provisioning legacy IPv4 addresses for every instance. Any plans for an IPv6 path to the update farm?

Thank you.

ruby wrapper package conflicts with pkg_alternatives

pkgin in ruby fails with following error:

---Nov 12 10:43:33: installing libyaml-0.1.7...
---Nov 12 10:43:33: installing ruby24-base-2.4.2...
---Nov 12 10:43:37: installing ruby-2.4.2...
pkg_add: Package `ruby-2.4.2' conflicts with `pkg_alternatives-[0-9]*', and `pkg_alternatives-1.6' is installed.
pkg_add: 1 package addition failed

pkgin in ruby24 works and correctly installs symlink at /opt/pkg/bin/ruby. Regression of TritonDataCenter/pkgsrc-legacy#302?

[illumos] Fail to compile postgresql extension

I have been trying to compile https://github.com/2ndquadrant-it/redislog and end-up with the following error:

# make
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/opt/local/include/ncurses -DLDAP_DEPRECATED -I/usr/include -fPIC -I. -I./ -I/opt/local/include/postgresql/server -I/opt/local/include/postgresql/internal -I/opt/local/include -I/opt/local/include/ncurses -DLDAP_DEPRECATED -I/usr/include -I/opt/local/include/libxml2 -I/opt/local/include   -c -o redislog.o redislog.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/opt/local/include/ncurses -DLDAP_DEPRECATED -I/usr/include -fPIC -shared -o redislog.so redislog.o -L/opt/local/lib -L/opt/local/gcc49/lib/gcc/x86_64-sun-solaris2.11/4.9.4 -Wl,-R/opt/local/gcc49/lib/gcc/x86_64-sun-solaris2.11/4.9.4 -L/opt/local/lib -Wl,-R/opt/local/lib -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib  -Wl,--as-needed -Wl,-R'/opt/local/lib'  -lhiredis 
ld: fatal: unrecognized option '--as-needed'
ld: fatal: use the -z help option for usage information
collect2: error: ld returned 1 exit status
/opt/local/lib/postgresql/pgxs/src/makefiles/../../src/Makefile.shlib:315: recipe for target 'redislog.so' failed
make: *** [redislog.so] Error 1

After some research I found out that removing the flag in /opt/local/lib/postgresql/pgxs/src/Makefile.global solves the issue:

--- /opt/local/lib/postgresql/pgxs/src/Makefile.global  2017-10-03 16:54:05.000000000 +0000
+++ Makefile.global     2017-11-09 07:42:08.015102230 +0000
@@ -277,7 +277,7 @@
 else
   LDFLAGS = -L$(top_builddir)/src/port -L$(top_builddir)/src/common
 endif
-LDFLAGS += -L/opt/local/gcc49/lib/gcc/x86_64-sun-solaris2.11/4.9.4 -Wl,-R/opt/local/gcc49/lib/gcc/x86_64-sun-solaris2.11/4.9.4 -L/opt/local/lib -Wl,-R/opt/local/lib -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib  -Wl,--as-needed
+LDFLAGS += -L/opt/local/gcc49/lib/gcc/x86_64-sun-solaris2.11/4.9.4 -Wl,-R/opt/local/gcc49/lib/gcc/x86_64-sun-solaris2.11/4.9.4 -L/opt/local/lib -Wl,-R/opt/local/lib -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib
 
 LDFLAGS_EX = 
 # LDFLAGS_SL might have already been assigned by calling makefile

Unfortunately, I don't know if this change as any other side effect. I tested with both postgres 9.2 and 10 on base-64-lts 15.4.0 and base-64 17.3.0 respectively.

Incorrect library version linked in php-7.1.12 in 2017Q4

Hi all,

Just upgraded to the latest version of 2017Q4 did a full-upgrade.
and that included php-7.1.12 and found a small issue with it.
As i am running nextcloud and this needs gd so after the upgrade was getting gd not loaded it was configured but not loaded.
Then after looking at the logs i found the following.
ldd /opt/local/lib/php/20160303/gd.so is giving the following
libimagequant.so.0 =>

so i installed the library and was thinking ok it will be fine but no still
so after the isntallation of libimagequant i looked if the lib is there and that gives me the following
ls -l libimagequant.so*
lrwxrwxrwx 1 root root 23 Dec 30 18:47 libimagequant.so -> libimagequant.so.2.0.11
lrwxrwxrwx 1 root root 23 Dec 30 18:47 libimagequant.so.2 -> libimagequant.so.2.0.11
-rwxr-xr-x 1 root root 72584 Dec 30 18:47 libimagequant.so.2.0.11
So here you can see there is no ibimagequant.so.0
so the only thing that i did is made a symlink from ibimagequant.so.0 to ibimagequant.so
and now the php is working great again as it found the library.
So just to let you know that i had this problem
Regards
Filip

[illumos] mono 4 missing getdomainname

[root@ares ~]# TZ=Europe/Brussels mono Radarr/Radarr.exe
[Info] Bootstrap: Starting Radarr - /root/Radarr/Radarr.exe - Version 0.2.0.778 
[Info] MigrationLogger: *** Migrating data source=/root/.config/Radarr/nzbdrone.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 *** 
[Info] MigrationLogger: *** Migrating data source=/root/.config/Radarr/logs.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 *** 
[Info] Router: Application mode: Interactive 
[Info] OwinHostController: Listening on the following URLs: 
[Info] OwinHostController:   http://*:7878/ 
[Info] NancyBootstrapper: Starting NzbDrone API 
[Error] TaskExtensions: Task Error 

[v0.2.0.778] System.EntryPointNotFoundException: getdomainname
  at (wrapper managed-to-native) System.Net.NetworkInformation.CommonUnixIPGlobalProperties:getdomainname (byte[],int)
  at System.Net.NetworkInformation.CommonUnixIPGlobalProperties.get_DomainName () [0x00000] in <filename unknown>:0 
  at System.Net.CookieContainer..ctor () [0x00000] in <filename unknown>:0 
  at NzbDrone.Common.Http.HttpClient+<>c.<PrepareRequestCookies>b__7_0 () [0x00000] in <filename unknown>:0 
  at NzbDrone.Common.Cache.Cached`1[System.Net.CookieContainer].Get (System.String key, System.Func`1 function, Nullable`1 lifeTime) [0x00000] in <filename unknown>:0 
  at NzbDrone.Common.Http.HttpClient.PrepareRequestCookies (NzbDrone.Common.Http.HttpRequest request) [0x00000] in <filename unknown>:0 
  at NzbDrone.Common.Http.HttpClient.Execute (NzbDrone.Common.Http.HttpRequest request) [0x00000] in <filename unknown>:0 
  at NzbDrone.Common.Http.HttpClient.Get (NzbDrone.Common.Http.HttpRequest request) [0x00000] in <filename unknown>:0 
  at NzbDrone.Common.Http.HttpClient.Get[UpdatePackageAvailable] (NzbDrone.Common.Http.HttpRequest request) [0x00000] in <filename unknown>:0 
  at NzbDrone.Core.Update.UpdatePackageProvider.GetLatestUpdate (System.String branch, System.Version currentVersion) [0x00000] in <filename unknown>:0 
  at NzbDrone.Core.Update.CheckUpdateService.AvailableUpdate () [0x00000] in <filename unknown>:0 
  at NzbDrone.Core.HealthCheck.Checks.UpdateCheck.Check () [0x00000] in <filename unknown>:0 
  at NzbDrone.Core.HealthCheck.HealthCheckService+<>c.<PerformHealthCheck>b__7_0 (IProvideHealthCheck c) [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[NzbDrone.Core.HealthCheck.IProvideHealthCheck,NzbDrone.Core.HealthCheck.HealthCheck].MoveNext () [0x00000] in <filename unknown>:0 
  at System.Collections.Generic.List`1[NzbDrone.Core.HealthCheck.HealthCheck]..ctor (IEnumerable`1 collection) [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable.ToList[HealthCheck] (IEnumerable`1 source) [0x00000] in <filename unknown>:0 
  at NzbDrone.Core.HealthCheck.HealthCheckService.PerformHealthCheck (System.Func`2 predicate) [0x00000] in <filename unknown>:0 
  at NzbDrone.Core.HealthCheck.HealthCheckService.HandleAsync (NzbDrone.Core.Lifecycle.ApplicationStartedEvent message) [0x00000] in <filename unknown>:0 
  at NzbDrone.Core.Messaging.Events.EventAggregator+<>c__DisplayClass4_1`1[NzbDrone.Core.Lifecycle.ApplicationStartedEvent].<PublishEvent>b__0 () [0x00000] in <filename unknown>:0 
  at System.Threading.Tasks.Task.InnerInvoke () [0x00000] in <filename unknown>:0 
  at System.Threading.Tasks.Task.Execute () [0x00000] in <filename unknown>:0 

This is just one example stack trace, I can get more but basically getdomainname support is not available, problem is that nearly all hostname to ip lookups need this. This makes mono unusable for all network related stuff.

[darwin/trunk] git broken after upgrade

After the latest set of updates git broke, probably some other commands too.
After updating git showed an error comming from nghttp2.

nghttp2 was linked to an older version of libcurl, the last set of updates did include a newer version of curl. So that is probably why.

This was fixed by doing a pkgin install -F nghttp2. Not sure if this is fixable... this is probably because the version of nghttp2 did not change so it was not upgrade... while there was a rebuild version available? Linking is hard :(

[wiki] use:saltstack

Introduction

This document describes how to set up a salt-master using pkgsrc packages available on SmartOS. Most of the information is applicable to other pkgsrc platforms but you may need to change paths and init services.

This was all done using the following image: 23b267fc-ad02-11e7-94da-53e3d3884fe0

what is saltstack

Saltstack is a modern tool for IT automation, it offers both configuration management, remote command execution, and much more. Here after refered to as salt.

It can both be use in a standalone mode and a mode where all minions (clients) talk to a master. In this guide we will cover bootstrapping a master from a minion running in standalone mode.

setting up the salt-master

We will use salt to setup our salt-master, we call this node salt.example.org.
The initial execution will be salt in standalone mode.

installing the packages

: Install package
$ pkgin -y install salt py27-pygit2 git-base

: Edit the minion config file
$ vi /opt/local/etc/salt/minion

/opt/local/etc/salt/minion

####
## bootstrap configuration (standalone)
####
## minion id
# NOTE: we set both the id and append_domain beacause we are running
#       on illumos where socket.getfqdn() does not behave properly from
#       salt's perspective.
id: salt
append_domain: example.org

## configure local pillar/state storage and the salt-formula from git
file_client: local
file_roots:
  base:
    - /var/salt/file-roots
pillar_roots:
  base:
   - /var/salt/pillar-roots
fileserver_backend:
  - roots
  - git
gitfs_remotes:
  - http://github.com/saltstack-formulas/salt-formula.git

# vim: tabstop=2 expandtab shiftwidth=2 softtabstop=2

create a bare minimal salt environment

Here we create a bare minimal salt environment that manages the salt-master on salt.example.org and will manage the salt-minion on all other nodes.

: Lets explorer what salt knows about our system
salt-call grains.items

: Find out if we are identified as salt.example.org (FQDN, also id and domain set earlier)
salt-call grains.get id

We make sure that salt identifies us correctly. More information about grains can be find in the SaltStack Docs

: Create a top.sls for our states
$ vi /var/salt/file-roots/top.sls

: Create top.sls for our pillar
$ vi /var/salt/pillar-roots/top.sls

: Create salt.sls to hold our salt-master/minion configuration
$ vi /var/salt/pillar-roots/salt.sls

: Override some salt configuration if we are the salt-master node.
$ mkdir -p /var/salt/pillar-roots/minion/
$ vi /var/salt/pillar-roots/minion/salt_example_org.sls

: Bootstrap ourselves
$ salt-call state.apply

: Accept our key so the master can talk to itself
$ salt-key -y -a salt.example.org

After this the master is still configured to work in standalone mode, this is by design.
In theory you can always rebootstrap the master this way.

To run salt standalone: salt-call state.apply
To run salt from the master on a minion: salt minion_id state.apply

Basically we said that salt.example.org should get both the salt.master and salt.minion state and all other nodes should get the salt.minion state. We provided those states with information they need to configure everything for us using the salt pillar.

There is a big collection of formulas available for other software, you can learn more here.

/var/salt/file-roots/top.sls

####
## top state
####
base:
  # NOTE: we bootstrap the last master
  'salt.example.org':
    - salt.master
  # NOTE: manage minion configuration on all nodes
  '*':
    - salt.minion

# vim: tabstop=2 expandtab shiftwidth=2 softtabstop=2

/var/salt/pillar-roots/top.sls

[root@salt /var/salt/pillar-roots]# cat top.sls
####
## top pillar
####
{% set safe_id = salt['grains.get']('id')|replace('.', '_') %}
base:
  # NOTE: on all minions we include:
  #       - salt configuration
  #       - minion specific overrides
  '*':
    - salt
{% if salt['file.file_exists']('minion/{0}.sls'.format(safe_id)) %}
    - minion.{{ safe_id }}
{% endif %}

# vim: tabstop=2 expandtab shiftwidth=2 softtabstop=2

/var/salt/pillar-roots/salt.sls

####
## salt configuration
####
salt:
  append_domain: example.org
  master_remove_config: True
  minion_remove_config: True
  minion:
    master: salt.example.org

# vim: tabstop=2 expandtab shiftwidth=2 softtabstop=2

/var/salt/pillar-roots/minion/salt_example_org.sls

####
## salt master configuration
####
salt:
  ## NOTE: configure the salt master
  master:
    fileserver_backend:
      - roots
      - git
    gitfs_remotes:
      - https://github.com/saltstack-formulas/salt-formula.git
    file_roots:
      base:
        - /var/salt/file-roots
    pillar_roots:
      base:
        - /var/salt/pillar-roots
  ## NOTE: configure this salt minion to work standalone
  minion:
    id: salt
    append_domain: example.org
    file_client: local
    fileserver_backend:
      - roots
      - git
    gitfs_remotes:
      - https://github.com/saltstack-formulas/salt-formula.git
    file_roots:
      base:
        - /var/salt/file-roots
    pillar_roots:
      base:
        - /var/salt/pillar-roots

# vim: tabstop=2 expandtab shiftwidth=2 softtabstop=2

setting a new minion

Now that we have a master, we want some minions we can manage and configure.

installing the packages

: Install package
$ pkgin -y install salt

: Announce the minion to the master
$ mkdir -p /opt/local/etc/salt/pki/minion
$ salt-call --master=salt.example.org --id=saltmin.example.org test.ping

: Accept the minion's key on the master
$ salt-key -y -a minion_id

: Bootstrap the minion
$ salt-call --master=salt.example.org --id=saltmin.example.org state.apply

[illumos] net/syncthing fails to compile on SmartOS

The net/syncthing package currently builds all of the syncthing family of binaries, but only uses the syncthing binary.
The stdiscosrv binary fails to build for solaris specific problems in a dependency (mmap-go)

Is is possible to build only the syncthing binary on SmartOS?
with:

go run build.go install syncthing

wireshark failed on DilOS

DilOS iso:
http://apt2.dilos.org/dilos/isos/dilos-core-17-10-31_16-39-2.0.0.6.iso

installed pkgsrc:
https://pkgsrc.joyent.com/packages/SmartOS/bootstrap/bootstrap-2017Q3-x86_64.tar.gz

install wireshark by:
/opt/local/bin/pkgin in xterm xauth wireshark

try to start wireshark by and has core.

root@dilos-init11:~# /opt/local/bin/wireshark-gtk
Arithmetic Exception (core dumped)

root@dilos-init11:~# mdb core
Loading modules: [ libumem.so.1 libc.so.1 libnvpair.so.1 libuutil.so.1 libavl.so.1 ld.so.1 ]

$C
fffffd7fffdff720 bytes_view_adjustment_set+0x8d()
fffffd7fffdff780 bytes_view_adjustment_set+0x195()
fffffd7fffdff860 libgobject-2.0.so.0.5200.3g_object_new_internal+0x6f1() fffffd7fffdff8d0 libgobject-2.0.so.0.5200.3g_object_newv+0x27d()
fffffd7fffdff9d0 libgobject-2.0.so.0.5200.3`g_object_new+0x10c()
fffffd7fffdff9e0 bytes_view_new+0x15()
fffffd7fffdffa40 add_byte_tab+0x84()
fffffd7fffdffa60 byte_view_new+0x83()
fffffd7fffdffbb0 main+0x8bd()
fffffd7fffdffbc0 _start+0x6c()

root@dilos-init11:/opt/local/bin# ldd wireshark-gtk
libwscodecs.so.1 => /opt/local/lib//libwscodecs.so.1
libwiretap.so.6 => /opt/local/lib//libwiretap.so.6
libwireshark.so.8 => /opt/local/lib//libwireshark.so.8
liblua5.2.so.5 => /opt/local/lib//liblua5.2.so.5
libdl.so.1 => /lib/64/libdl.so.1
libwsutil.so.7 => /opt/local/lib//libwsutil.so.7
libcrypto.so.1.0.0 => /opt/local/lib//libcrypto.so.1.0.0
libpcap.so.0 => /opt/local/lib//libpcap.so.0
libdlpi.so.1 => /lib/64/libdlpi.so.1
libkrb5.so.3 => /opt/local/lib//libkrb5.so.3
libk5crypto.so.3 => /opt/local/lib//libk5crypto.so.3
libcom_err.so.3 => /opt/local/lib//libcom_err.so.3
libkrb5support.so.0 => /opt/local/lib//libkrb5support.so.0
libgcrypt.so.20 => /opt/local/lib//libgcrypt.so.20
libgpg-error.so.0 => /opt/local/lib//libgpg-error.so.0
libgnutls.so.30 => /opt/local/lib//libgnutls.so.30
libunistring.so.2 => /opt/local/lib//libunistring.so.2
libtasn1.so.6 => /opt/local/lib//libtasn1.so.6
libhogweed.so.4 => /opt/local/lib//libhogweed.so.4
libnettle.so.6 => /opt/local/lib//libnettle.so.6
libgmp.so.10 => /opt/local/lib//libgmp.so.10
libgen.so.1 => /lib/64/libgen.so.1
libsmi.so.2 => /opt/local/lib//libsmi.so.2
libgtk-3.so.0 => /opt/local/lib//libgtk-3.so.0
libgdk-3.so.0 => /opt/local/lib//libgdk-3.so.0
libpangocairo-1.0.so.0 => /opt/local/lib//libpangocairo-1.0.so.0
libpangoft2-1.0.so.0 => /opt/local/lib//libpangoft2-1.0.so.0
libharfbuzz.so.0 => /opt/local/lib//libharfbuzz.so.0
libpango-1.0.so.0 => /opt/local/lib//libpango-1.0.so.0
libatk-1.0.so.0 => /opt/local/lib//libatk-1.0.so.0
libcairo-gobject.so.2 => /opt/local/lib//libcairo-gobject.so.2
libcairo.so.2 => /opt/local/lib//libcairo.so.2
libpixman-1.so.0 => /opt/local/lib//libpixman-1.so.0
libfontconfig.so.1 => /opt/local/lib//libfontconfig.so.1
libexpat.so.1 => /opt/local/lib//libexpat.so.1
libfreetype.so.6 => /opt/local/lib//libfreetype.so.6
libbz2.so.0 => /opt/local/lib//libbz2.so.0
libxcb-shm.so.0 => /opt/local/lib//libxcb-shm.so.0
libxcb-render.so.0 => /opt/local/lib//libxcb-render.so.0
libXrender.so.1 => /opt/local/lib//libXrender.so.1
libXext.so.0 => /opt/local/lib//libXext.so.0
libX11.so.6 => /opt/local/lib//libX11.so.6
libxcb.so.1 => /opt/local/lib//libxcb.so.1
libXau.so.6 => /opt/local/lib//libXau.so.6
libXdmcp.so.6 => /opt/local/lib//libXdmcp.so.6
librt.so.1 => /lib/64/librt.so.1
libgdk_pixbuf-2.0.so.0 => /opt/local/lib//libgdk_pixbuf-2.0.so.0
libpng16.so.16 => /opt/local/lib//libpng16.so.16
libgio-2.0.so.0 => /opt/local/lib//libgio-2.0.so.0
libresolv.so.2 => /lib/64/libresolv.so.2
libgobject-2.0.so.0 => /opt/local/lib//libgobject-2.0.so.0
libffi.so.6 => /opt/local/lib//libffi.so.6
libgthread-2.0.so.0 => /opt/local/lib//libgthread-2.0.so.0
libgmodule-2.0.so.0 => /opt/local/lib//libgmodule-2.0.so.0
libglib-2.0.so.0 => /opt/local/lib//libglib-2.0.so.0
libpcre.so.1 => /opt/local/lib//libpcre.so.1
libpthread.so.1 => /lib/64/libpthread.so.1
libthread.so.1 => /lib/64/libthread.so.1
libnsl.so.1 => /lib/64/libnsl.so.1
libsocket.so.1 => /lib/64/libsocket.so.1
libintl.so.8 => /opt/local/lib//libintl.so.8
libiconv.so.2 => /opt/local/lib//libiconv.so.2
libc.so.1 => /lib/64/libc.so.1
libz.so.1 => /opt/local/lib//libz.so.1
libm.so.2 => /lib/64/libm.so.2
libumem.so.1 => /lib/64/libumem.so.1
libssp.so.0 => /opt/local/gcc49/x86_64-sun-solaris2.11/lib/amd64/libssp.so.0
libgcc_s.so.1 => /opt/local/gcc49/x86_64-sun-solaris2.11/lib/amd64/libgcc_s.so.1
libinetutil.so.1 => /lib/64/libinetutil.so.1
libdladm.so.1 => /lib/64/libdladm.so.1
libXinerama.so.1 => /opt/local/lib//libXinerama.so.1
libXrandr.so.2 => /opt/local/lib//libXrandr.so.2
libXcursor.so.1 => /opt/local/lib//libXcursor.so.1
libXcomposite.so.1 => /opt/local/lib//libXcomposite.so.1
libXdamage.so.1 => /opt/local/lib//libXdamage.so.1
libXfixes.so.3 => /opt/local/lib//libXfixes.so.3
libatk-bridge-2.0.so.0 => /opt/local/lib//libatk-bridge-2.0.so.0
libatspi.so.0 => /opt/local/lib//libatspi.so.0
libXtst.so.6 => /opt/local/lib//libXtst.so.6
libXi.so.6 => /opt/local/lib//libXi.so.6
libxkbcommon-x11.so.0 => /opt/local/lib//libxkbcommon-x11.so.0
libxcb-xkb.so.1 => /opt/local/lib//libxcb-xkb.so.1
libxkbcommon.so.0 => /opt/local/lib//libxkbcommon.so.0
libdbus-1.so.3 => /opt/local/lib//libdbus-1.so.3
libbsm.so.1 => /lib/64/libbsm.so.1
libepoxy.so.0 => /opt/local/lib//libepoxy.so.0
libmd.so.1 => /lib/64/libmd.so.1
libmp.so.2 => /lib/64/libmp.so.2
libdevinfo.so.1 => /lib/64/libdevinfo.so.1
libscf.so.1 => /lib/64/libscf.so.1
librcm.so.1 => /lib/64/librcm.so.1
libnvpair.so.1 => /lib/64/libnvpair.so.1
libexacct.so.1 => /usr/lib/64/libexacct.so.1
libkstat.so.1 => /lib/64/libkstat.so.1
libpool.so.1 => /usr/lib/64/libpool.so.1
libvarpd.so.1 => /usr/lib/64/libvarpd.so.1
libsecdb.so.1 => /lib/64/libsecdb.so.1
libtsol.so.2 => /lib/64/libtsol.so.2
libsec.so.1 => /lib/64/libsec.so.1
libuutil.so.1 => /lib/64/libuutil.so.1
libsmbios.so.1 => /usr/lib/64/libsmbios.so.1
libxml2.so.2 => /lib/64/libxml2.so.2
libavl.so.1 => /lib/64/libavl.so.1
libidspace.so.1 => /usr/lib/64/libidspace.so.1
libmd5.so.1 => /lib/64/libmd5.so.1
librename.so.1 => /usr/lib/64/librename.so.1
libbunyan.so.1 => /usr/lib/64/libbunyan.so.1
libidmap.so.1 => /usr/lib/64/libidmap.so.1
libz.so.1 => /lib/64/libz.so.1
liblzma.so.5 => /lib/64/liblzma.so.5
libiconv.so.2 => /lib/64/libiconv.so.2
libofmt.so.1 => /lib/64/libofmt.so.1

mosh on darwin not working

$ mosh gloom            
dyld: Library not loaded: /opt/pkg/lib/libprotobuf.13.dylib
  Referenced from: /opt/pkg/bin/mosh-client
  Reason: image not found
Died at /opt/pkg/bin/mosh line 311.

Looking at protobuf...

$ pkgin pc protobuf | grep libprotobuf.1..dylib
/opt/pkg/lib/libprotobuf.15.dylib

Symlinking libprotobuf only produces this error.

$ mosh gloom
[libprotobuf FATAL google/protobuf/stubs/common.cc:79] This program was compiled against version 3.3.0 of the Protocol Buffer runtime library, which is not compatible with the installed version (3.5.0).  Contact the program author for an update.  If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library.  (Version verification failed in "userinput.pb.cc".)
libc++abi.dylib: terminating with uncaught exception of type google::protobuf::FatalException: This program was compiled against version 3.3.0 of the Protocol Buffer runtime library, which is not compatible with the installed version (3.5.0).  Contact the program author for an update.  If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library.  (Version verification failed in "userinput.pb.cc".)
Died at /opt/pkg/bin/mosh line 311.

redis daemon fail to start on Mac OS X High Sierra

was working on Sierra, but broke after upgrade to High Sierra.

some salient details.

$ cat /var/log/system.log | grep io.redis 
...
...com.apple.xpc.launchd[1] (io.redis[68292]): Service could not initialize: 17B48: xpcproxy + 11572 [1522][7BE6B6AA-12DD-365C-A5C5-C8C8A2293D0B]: 0xd
... com.apple.xpc.launchd[1] (io.redis): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
...
$ cat /Library/LaunchDaemons/io.redis.plist 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Label</key>
	<string>io.redis</string>
	<key>ProgramArguments</key>
	<array>
		<string>/opt/pkg/bin/redis-server</string>
		<string>/opt/pkg/etc/redis.conf</string>
	</array>
        <key>KeepAlive</key>
        <true/>
        <key>RunAtLoad</key>
        <true/>
	<key>StandardErrorPath</key>
        <string>/var/log/redis/error.log</string>
	<key>StandardOutPath</key>
	<string>/dev/null</string>
        <key>UserName</key>
        <string>redis</string>
</dict>
</plist>
$ sudo -u redis file /opt/pkg/bin/redis-server
/opt/pkg/bin/redis-server: Mach-O 64-bit executable x86_64
$ sudo -u redis file /var/log/redis/error.log
/var/log/redis/error.log: empty
$ dscacheutil -q user
...
name: redis
password: *
uid: 301
gid: 301
dir: /var/empty
shell: /usr/bin/false
gecos: redis
...
$ # remove /Library/LaunchDaemons/io.redis.plist and restart
$ sudo -u redis /opt/pkg/bin/redis-server /opt/pkg/etc/redis.conf
1151:M 29 Nov 14:17:30.363 * Increased maximum number of open files to 10032 (it was originally set to 256)
...
$ sudo launchctl limit maxfiles
	maxfiles    256            unlimited 
$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
file size               (blocks, -f) unlimited
max locked memory       (kbytes, -l) unlimited
max memory size         (kbytes, -m) unlimited
open files                      (-n) 256
pipe size            (512 bytes, -p) 1
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 2128
virtual memory          (kbytes, -v) unlimited

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.