MacPorts Error When Installing GDBM - merge

When I attempt to run the command sudo port install gdbm, the output is as follows:
---> Fetching archive for gdbm
---> Attempting to fetch gdbm-1.10_0+universal.darwin_11.i386-x86_64.tbz2 from http://packages.macports.org/gdbm
---> Fetching gdbm
---> Verifying checksum(s) for gdbm
---> Extracting gdbm
---> Configuring gdbm
---> Building gdbm
---> Staging gdbm into destroot
Error: Target org.macports.destroot returned: /opt/local/lib/libgdbm.la differs in /opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_databases_gdbm/gdbm/work/destroot-i386 and /opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_databases_gdbm/gdbm/work/destroot-x86_64 and cannot be merged
Log for gdbm is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_databases_gdbm/gdbm/main.log
Error: Unable to upgrade port: 1
Error: Unable to execute port: upgrade pkgconfig failed
To report a bug, see <http://guide.macports.org/#project.tickets>`
WHYYYYY????
See Log:
http://pastebin.com/8s0MgHbR

Related

VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory

I am trying to install kubeadm and for this i am trying to create vagrant environment i clone this link "https://github.com/kodekloudhub/certified-kubernetes-administrator-course" to my server and then run the command "vagrant up". I take this error.I am using Ubuntu 20.04.5 LTS
==> kubemaster: Clearing any previously set network interfaces...
There was an error while executing VBoxManage, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["hostonlyif", "create"]
Stderr: 0%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to create the host-only adapter
VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg*)" at line 95 of file VBoxManageHostonly.cpp
i want to create vagrant environment
This problem was solved by downgrading the "VirtualBox" version. Try to install version 6.38.

API Connect docker gateway on localhost throwing ECONNREFUSED

I'm running the below node/npm/apic versions.
$node -v
v6.14.4
$npm -v
6.4.1
$apic -v
API Connect: v5.0.8.5-iFix (apiconnect: v3.0.25)
apiconnect-init-datapower-gateway#1.0.3
Problem: I am able to start the API on port 4001 and the datapower gw on port 4002. But getting the below error on the console. When I hit https://127.0.0.1:4002, I get a 404 not found. Any help would be appreciated? Thanks!
$apic services
Service test-api running on port 4001. Access the application dashboard at http://127.0.0.1:4001/appmetrics-dash
Service test-api-gw running on port 4002.
$apic edit
Express server listening on http://127.0.0.1:4001
loopback deprecated loopback#context middleware is deprecated. See https://docs.strongloop.com/display/APIC/Using%20current%20context for more details. ../../../../../../../.nvm/versions/node/v6.14.4/lib/node_modules/apiconnect/node_modules/loopback/server/middleware/rest.js:60:32
Building datapower-mgmt-server-lite
Step 1/13 : FROM node:6-alpine
---> dfc29bfa7d41
Step 2/13 : RUN apk add --no-cache openssl
---> Using cache
---> a985e7c62de2
Step 3/13 : WORKDIR /usr/src/app
---> Using cache
---> de637a1c8cb9
Step 4/13 : COPY ./package.json ./
---> Using cache
---> 6783f3e99010
Step 5/13 : COPY ./apim-lite lib/
---> Using cache
---> cbedb90bcefc
Step 6/13 : COPY ./common common/
---> Using cache
---> 97c2c5b69e75
Step 7/13 : ARG IBM_APICONNECT_NPM_REGISTRY
---> Using cache
---> 200299d96559
Step 8/13 : ENV npm_config_registry ${IBM_APICONNECT_NPM_REGISTRY:-https://registry.npmjs.com}
---> Using cache
---> 4df68f6d1eba
Step 9/13 : RUN npm install --prod --quiet --depth 0
---> Using cache
---> c64e5f33e3b8
Step 10/13 : ENV NODE_ENV production
---> Using cache
---> 8dc4cde17120
Step 11/13 : RUN mkdir -p /tmp/generated && chown node:node /tmp/generated
---> Using cache
---> 43d2b4ea51ff
Step 12/13 : USER node
---> Using cache
---> 1eeb74a34016
Step 13/13 : CMD [ "node", "lib/server.js" ]
---> Using cache
---> 54b6327414db
Successfully built 54b6327414db
Successfully tagged ibm-apiconnect-toolkit/datapower-mgmt-server-lite:1.1.10
Building datapower-api-gateway
Step 1/7 : FROM ibmcom/datapower:7.6.0.0.289959
---> ba469cb4cbd3
Step 2/7 : ENV DATAPOWER_ACCEPT_LICENSE=true DATAPOWER_INTERACTIVE=true
---> Using cache
---> 57802d96884a
Step 3/7 : COPY config /drouter/config
---> Using cache
---> 343a6a7c27ad
Step 4/7 : COPY local /drouter/local
---> Using cache
---> 73fdb13773ec
Step 5/7 : USER root
---> Using cache
---> e0aa0bae38d6
Step 6/7 : RUN set-user drouter
---> Using cache
---> 784be61a92cc
Step 7/7 : USER drouter
---> Using cache
---> c872a6ed1d13
Successfully built c872a6ed1d13
Successfully tagged ibm-apiconnect-toolkit/datapower-api-gateway:1.1.10
{ Error: connect ECONNREFUSED 127.0.0.1:64802
at Object.exports._errnoException (util.js:1020:11)
at exports._exceptionWithHostPort (util.js:1043:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1099:14)
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 64802 }
Noticing these errors in the docker container logs:
20200128T044825.955Z [apiconnect][0x00330019][mgmt][error] source-http(webapi-http): tid(111): Operation state transition to up failed
20200128T044940.830Z [apiconnect][0x00330019][mgmt][error] source-http(webapi-internal-local): tid(111): Operation state transition to up failed
20200128T044940.854Z [apiconnect][0x00330019][mgmt][error] source-https(webapi-https): tid(111): Operation state transition to up failed

i running a cookbook from github. it throws error: recipe not found but if i run other recipes from that cookbook its runs fine

i took a cookbook from github and am running chef-client. it gives me the error recipe not found but if i run other recipes from that cookbook its runs fine
root#vagrant-ubuntu-trusty-64:~# chef-client
Starting Chef Client, version 12.16.42
resolving cookbooks for run list: ["task_postgis::postgre_extension"]
Synchronizing Cookbooks:
- task_postgis (0.1.0)
- database (6.1.1)
- postgresql (5.1.0)
- apt (5.0.0)
- compat_resource (12.16.2)
- build-essential (7.0.2)
- seven_zip (2.0.2)
- windows (2.1.1)
- ohai (4.2.2)
- mingw (1.2.4)
- openssl (6.0.0)
Installing Cookbook Gems:
Compiling Cookbooks...
[2016-12-05T10:04:51+00:00] WARN: Chef::Provider::AptRepository already exists! Cannot create deprecation class for LWRP provider apt_repository from cookbook apt
[2016-12-05T10:04:52+00:00] WARN: AptRepository already exists! Deprecation class overwrites Custom resource apt_repository from cookbook apt
================================================================================
Recipe Compile Error
Chef::Exceptions::RecipeNotFound
could not find recipe setup_extensions for cookbook postgresql
Cookbook Trace:
/var/chef/cache/cookbooks/task_postgis/recipes/postgre_extension.rb:1:in `from_file'
Relevant File Content:
/var/chef/cache/cookbooks/task_postgis/recipes/postgre_extension.rb:
1>> include_recipe 'postgresql::setup_extensions'
2: # install extensions to database
3: postgresql_extension "postgis" do
4: database "mydb"
5: end
6:
7: #postgresql_language "plpgsql" do
8: # database "mydb"
9: #end
10:
Platform:
x86_64-linux
Running handlers:
[2016-12-05T10:04:52+00:00] ERROR: Running exception handlers
Running handlers complete
[2016-12-05T10:04:52+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 14 seconds
[2016-12-05T10:04:53+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2016-12-05T10:04:53+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-12-05T10:04:53+00:00] ERROR: could not find recipe setup_extensions for cookbook postgresql
[2016-12-05T10:04:53+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
There is no setup_extensions recipe in community postgresql cookbook. I'm not sure if there ever was such recipe. Where did you get this snippet?

OTRS 3.2.* installation error on CentOS 6.5

I have installed CentOS 6.5 x86_64 on VMWare Workstation 9.
Then run updates after it disabled SELinux.
Now I'm trying to install otrs 3.3.6 but I'm get an error as below.
Have I challenges to fix it? Or it is a compatible issue?
Total size: 73 M
Installed size: 73 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Error in PREIN scriptlet in rpm package otrs-3.3.6-01.noarch
Check OTRS user ... otrs exists.
usermod: user otrs is currently logged in
error: %pre(otrs-3.3.6-01.noarch) scriptlet failed, exit status 8
error: install: %pre scriptlet failed (2), skipping otrs-3.3.6-01
Verifying : otrs-3.3.6-01.noarch 1/1
Failed:
otrs.noarch 0:3.3.6-01
I faced the issue because I created otrs user before installation.

Installing py27-scipy not working for py27-cairo using macports

(graphite)[nai:~]$ sudo port install py27-cairo
---> Computing dependencies for py27-cairo
---> Cleaning py27-cairo
---> Scanning binaries for linking errors: 100.0%
---> Found 5 broken file(s), matching files to ports
---> Found 3 broken port(s), determining rebuild order
---> Rebuilding in order
py27-scipy #0.10.1 +gcc45
qemu #1.4.0 +target_i386+target_x86_64
qt4-mac #4.8.3 +quartz
---> Computing dependencies for py27-scipy
---> Fetching archive for py27-scipy
---> Attempting to fetch py27-scipy-0.12.0_2+gcc45.darwin_11.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/py27-scipy
---> Attempting to fetch py27-scipy-0.12.0_2+gcc45.darwin_11.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/py27-scipy
---> Attempting to fetch py27-scipy-0.12.0_2+gcc45.darwin_11.x86_64.tbz2 from http://packages.macports.org/py27-scipy
---> Fetching distfiles for py27-scipy
---> Attempting to fetch scipy-0.12.0.tar.gz from http://jog.id.distfiles.macports.org/macports/mpdistfiles/py-scipy/0.12.0_1
---> Verifying checksum(s) for py27-scipy
---> Extracting py27-scipy
---> Applying patches to py27-scipy
---> Configuring py27-scipy
---> Building py27-scipy
^[[BError: org.macports.build for port py27-scipy returned: command execution failed
Please see the log file for port py27-scipy for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-scipy/py27-scipy/main.log
Error: Unable to upgrade port: 1
Error rebuilding py27-scipy
while executing
"error "Error rebuilding $portname""
(procedure "revupgrade_scanandrebuild" line 382)
invoked from within
"revupgrade_scanandrebuild broken_port_counts $opts"
(procedure "macports::revupgrade" line 5)
invoked from within
"macports::revupgrade $opts"
(procedure "action_revupgrade" line 2)
invoked from within
"action_revupgrade $action $portlist $opts"
(procedure "action_target" line 94)
invoked from within
"$action_proc $action $portlist [array get global_options]"
(procedure "process_cmd" line 95)
invoked from within
"process_cmd $remaining_args"
invoked from within
"if { [llength $remaining_args] > 0 } {
# If there are remaining arguments, process those as a command
set exit_status [process_cmd $remaining..."
(file "/opt/local/bin/port" line 4785)
So I have py27-scipy installed
(graphite)[nai:~]$ port installed py27-scipy
The following ports are currently installed:
py27-scipy #0.10.1_3+gcc45 (active)
Running
[nai:~]$ sudo port clean py27-numpy py27-scipy py27-matplotlib py27-ipython +notebook py27-pandas py27-sympy py27-nose
followed by a
[nai:~]$ sudo port install py27-numpy py27-scipy py27-matplotlib py27-ipython +notebook py27-pandas py27-sympy py27-nose
I ran port self update and it probably broke some stuff.