Opened 14 years ago

Closed 14 years ago

#24327 closed defect (invalid)

libiconv: include/iconv.h already exists and does not belong to a registered port

Reported by: spjatkin@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: libiconv

Description (last modified by ryandesign (Ryan Carsten Schmidt))

i'm trying porting mc on my MAC OS X 10.6.2.

i have got an error message during activating libconv

--->  Activating libiconv @1.13.1_0
DEBUG: Removing entry from file_map: /opt/local/bin/iconv
Error: The following dependencies failed to build: glib2 autoconf help2man gettext libiconv ncurses ncursesw p5-locale-gettext perl5 perl5.8 m4 automake libtool pkgconfig lzmautils slang2 libpng zlib pcre bzip2 readline
Error: Status 1 encountered during processing.

i attached the full log file.

what i did wrong?

Thanks,
Sergey

Attachments (2)

mc_libconv_debug.rtf (33.4 KB) - added by spjatkin@… 14 years ago.
libiconv.txt.bz2 (10.3 KB) - added by spjatkin@… 14 years ago.

Download all attachments as: .zip

Change History (11)

Changed 14 years ago by spjatkin@…

Attachment: mc_libconv_debug.rtf added

comment:1 Changed 14 years ago by spjatkin@…

Cc: spjatkin@… added

Cc Me!

comment:2 Changed 14 years ago by mf2k (Frank Schima)

Cc: spjatkin@… removed
Description: modified (diff)
Keywords: mc libconv removed
Owner: changed from macports-tickets@… to ryandesign@…
Port: libiconv added; mc removed

comment:3 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: mc porting: Activating libiconv faillibiconv failed to activate

Actually it looks like you're on 10.6.3.

I can't tell why libiconv failed to activate; the log doesn't seem to give a reason. So I can only suggest you uninstall libiconv, clean it, and try installing it again, this time with the debug switch -- after selfupdating to make sure you have the latest port definitions:

sudo port -f uninstall libiconv
sudo port selfupdate
sudo port clean libiconv
sudo port -d install libiconv 2>&1 | tee ~/Desktop/libiconv.txt
bzip2 ~/Desktop/libiconv.txt

If it fails again, attach the file libiconv.txt.bz2 from your desktop to this ticket.

Changed 14 years ago by spjatkin@…

Attachment: libiconv.txt.bz2 added

comment:4 in reply to:  3 Changed 14 years ago by spjatkin@…

Replying to ryandesign@…:

Actually it looks like you're on 10.6.3.

I can't tell why libiconv failed to activate; the log doesn't seem to give a reason. So I can only suggest you uninstall libiconv, clean it, and try installing it again, this time with the debug switch -- after selfupdating to make sure you have the latest port definitions:

sudo port -f uninstall libiconv
sudo port selfupdate
sudo port clean libiconv
sudo port -d install libiconv 2>&1 | tee ~/Desktop/libiconv.txt
bzip2 ~/Desktop/libiconv.txt

If it fails again, attach the file libiconv.txt.bz2 from your desktop to this ticket.

Thanks for assistance and quick response. I did all mentioned steps you proposed. The activating of libiconv stopped with error. see attached the file libiconv.txt.bz2.

comment:5 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Ok, now I see an error I understand: "/opt/local/include/iconv.h already exists and does not belong to a registered port." So, why does this file already exist if it doesn't belong to the libiconv port? How did it get there? A previous MacPorts install that was uninstalled incompletely? A MacPorts install migrated from an old Mac? A standalone binary package? Whatever the reason, it has to go. You can force the activation with "sudo port -f activate libiconv" but if you cannot explain why the file already existed there's no guarantee this same problem won't occur again with other ports, and it may be safer to uninstall all of MacPorts, then install again.

comment:6 in reply to:  5 ; Changed 14 years ago by spjatkin@…

Replying to ryandesign@…:

Ok, now I see an error I understand: "/opt/local/include/iconv.h already exists and does not belong to a registered port." So, why does this file already exist if it doesn't belong to the libiconv port? How did it get there? A previous MacPorts install that was uninstalled incompletely? A MacPorts install migrated from an old Mac? A standalone binary package? Whatever the reason, it has to go. You can force the activation with "sudo port -f activate libiconv" but if you cannot explain why the file already existed there's no guarantee this same problem won't occur again with other ports, and it may be safer to uninstall all of MacPorts, then install again.

Thanks, very much. I have waited night to download some dependencies from some server. The process doesn't stopped, i broke this by ctrl-c. Probably this can be a reason for iconv.h already exists. I activated libiconv and run install mc. I have the same problem with downloading ncurses this time. My location is Latvia. The problem server is ftp://ftp.funet.fi. This server has shortest ping but doesn't want to upload components. How to select another server and how to continue download if i force stoped the process.

comment:7 in reply to:  6 ; Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Summary: libiconv failed to activatelibiconv: include/iconv.h already exists and does not belong to a registered port

Replying to spjatkin@…:

I have waited night to download some dependencies from some server. The process doesn't stopped, i broke this by ctrl-c. Probably this can be a reason for iconv.h already exists.

Only if you pressed ctrl-c during the activation or deactivation phase. At any other time, ctrl-c shouldn't cause such a problem.

I activated libiconv and run install mc. I have the same problem with downloading ncurses this time. My location is Latvia. The problem server is ftp://ftp.funet.fi. This server has shortest ping but doesn't want to upload components.

Sorry it's not working for you... it's working for me, from Texas.

How to select another server

You can't influence the server order; they're tried in order of ping time. This server is listed several times in the file mirror_sites.tcl. You could edit this file and remove that server from the list, but your changes will not survive a "sudo port sync" if you are using the default rsync synchronization method. You could switch to the svn synchronization method which would preserve your changes through a sync.

and how to continue download if i force stoped the process.

When you re-run the command again, MacPorts will begin trying to download the file again. There is no way to get MacPorts to resume an incomplete download, but you could do so manually using "curl -C -" (if the server supports resuming); the partial file will be in /opt/local/var/macports/distfiles/<portname>.

comment:8 in reply to:  7 Changed 14 years ago by spjatkin@…

Replying to ryandesign@…:

Replying to spjatkin@…:

I have waited night to download some dependencies from some server. The process doesn't stopped, i broke this by ctrl-c. Probably this can be a reason for iconv.h already exists.

Only if you pressed ctrl-c during the activation or deactivation phase. At any other time, ctrl-c shouldn't cause such a problem.

I activated libiconv and run install mc. I have the same problem with downloading ncurses this time. My location is Latvia. The problem server is ftp://ftp.funet.fi. This server has shortest ping but doesn't want to upload components.

Sorry it's not working for you... it's working for me, from Texas.

How to select another server

You can't influence the server order; they're tried in order of ping time. This server is listed several times in the file mirror_sites.tcl. You could edit this file and remove that server from the list, but your changes will not survive a "sudo port sync" if you are using the default rsync synchronization method. You could switch to the svn synchronization method which would preserve your changes through a sync.

and how to continue download if i force stoped the process.

When you re-run the command again, MacPorts will begin trying to download the file again. There is no way to get MacPorts to resume an incomplete download, but you could do so manually using "curl -C -" (if the server supports resuming); the partial file will be in /opt/local/var/macports/distfiles/<portname>.

Yes! Thank you! I finally installed mc. Thank you very much again.

comment:9 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

Glad you got it working!

Note: See TracTickets for help on using tickets.