Opened 9 years ago
Closed 4 years ago
#47937 closed defect (worksforme)
grads: /opt/local/bin/wgrib already exists and does not belong to a registered port
Reported by: | kimi4896171@… | Owned by: | tenomoto (Takeshi Enomoto) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.3 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt) | |
Port: | grads |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
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!
Change History (6)
comment:1 follow-up: 2 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Port: | grads added |
Summary: | Installing grads using sudo port occurs error → grads: /opt/local/bin/wgrib already exists and does not belong to a registered port |
comment:2 follow-up: 3 Changed 9 years ago by kimi4896171@…
I tried activating grads @2.0.2_7 and it works. But it occurred error like
Error opening stroke character data set Data set names = /usr/local/lib/grads/scripts/font0.dat ; font0.dat
So i uninstalled all ports, reinstalled Macports and done self updating but it still occurs
Error opening stroke character data set Data set names = /usr/local/lib/grads/scripts/font0.dat ; font0.dat
I think installing Macport hasn't any problem but installing grads has problem cause it showed
$ sudo port install grads ---> Computing dependencies for grads ---> Cleaning grads ---> Updating database of binaries ---> Scanning binaries for linking errors ---> No broken files found.
What should i do? i googled it but can't find answer what i want..
comment:3 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Owner: | changed from macports-tickets@… to takeshi@… |
Replying to kimi4896171@…:
Error opening stroke character data set Data set names = /usr/local/lib/grads/scripts/font0.dat ; font0.dat
I'm not sure why grads is looking for anything in /usr/local, since that's not where MacPorts installs files. Takeshi?
comment:4 Changed 9 years ago by tenomoto (Takeshi Enomoto)
Check the environment variables. You might have installed a GrADS binary installed and set the environment variables for it. See the documentation.
comment:6 Changed 4 years ago by tenomoto (Takeshi Enomoto)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
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:
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.