[MacPorts] #47937: grads: /opt/local/bin/wgrib already exists and does not belong to a registered port (was: Installing grads using sudo port occurs error)
MacPorts
noreply at macports.org
Wed Jun 3 05:03:23 PDT 2015
#47937: grads: /opt/local/bin/wgrib already exists and does not belong to a
registered port
----------------------------+--------------------------------
Reporter: kimi4896171@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.3
Resolution: | Keywords:
Port: grads |
----------------------------+--------------------------------
Changes (by ryandesign@…):
* port: => grads
Old description:
> ------------------------------------------------------------------------------------
> epri12i1:~ epri$ grads
> -bash: grads: command not found
> epri12i1:~ epri$ sudo port install grads
> ---> Computing dependencies for grads
> ---> Activating grads @2.0.2_7
> Error: org.macports.activate for port grads returned: Image error:
> /opt/local/bin/wgrib already exists and does not belong to a registered
> port. Unable to activate port grads. Use 'port -f activate grads' to
> force the activation.
> Please see the log file for port grads for details:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_grads/grads/main.log
> To report a bug, follow the instructions in the guide:
> http://guide.macports.org/#project.tickets
> Error: Processing of port grads failed
> epri12i1:~ epri$ sudo port -f activate grads
> ---> The following versions of grads are currently installed:
> ---> grads @2.0.2_6
> ---> grads @2.0.2_7
> Error: port activate failed: Registry error: Please specify the full
> version as recorded in the port registry.
> epri12i1:~ epri$
> ---------------------------------------------------------------------------------------------
>
> there's no grads program so i installed it and it failed :(
> i tried logout and rebooting whole program but it failed again :((
> self upgraded of course but it failed again :(((
> what should i do?
> is there any problem that i miss?
>
> i realllllllllyyyyyyyy want your help!
New description:
{{{
epri12i1:~ epri$ grads
-bash: grads: command not found
epri12i1:~ epri$ sudo port install grads
---> Computing dependencies for grads
---> Activating grads @2.0.2_7
Error: org.macports.activate for port grads returned: Image error:
/opt/local/bin/wgrib already exists and does not belong to a registered
port. Unable to activate port grads. Use 'port -f activate grads' to
force the activation.
Please see the log file for port grads for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_grads/grads/main.log
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port grads failed
epri12i1:~ epri$ sudo port -f activate grads
---> The following versions of grads are currently installed:
---> grads @2.0.2_6
---> grads @2.0.2_7
Error: port activate failed: Registry error: Please specify the full
version as recorded in the port registry.
epri12i1:~ epri$
}}}
there's no grads program so i installed it and it failed :(
i tried logout and rebooting whole program but it failed again :((
self upgraded of course but it failed again :(((
what should i do?
is there any problem that i miss?
i realllllllllyyyyyyyy want your help!
--
Comment:
In order to force the activation, you would need to specify which of the
two versions you have installed you want to activate, for example:
{{{
sudo port -f activate grads @2.0.2_7
}}}
But the real question is why does /opt/local/bin/wgrib already exist and
not belong to a registered port? That should not be. If you cannot explain
why these files already exist, who knows how many other files are in your
MacPorts prefix that should not be there. Because of this, you may run
into this or other problems again later with other ports. It may be safer
to uninstall all ports, and uninstall MacPorts and delete all of
/opt/local, after saving any important data therein, and then reinstalling
MacPorts and the ports you want. Then you can be sure the only files that
are there are the ones MacPorts put there.
--
Ticket URL: <https://trac.macports.org/ticket/47937#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list