-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
Homebrew Libiconv error #29278
Comments
|
Can you describe this. what is the purpose of we use this code "sudo chown -R $USER /usr/local" |
It shows same error when i ran ./configure checking for JSON... no its shows libiconv not found. if i ran "brew doctor" after ran the "sudo chown -R $USER /usr/local this wil shows Warning: libiconv files detected at a system prefix other than /usr tl;dr: delete these files: Warning: You have MacPorts or Fink installed: This can cause trouble. You don't have to uninstall them, but you may want to sudo mv /opt/local ~/macports Warning: Unbrewed dylibs were found in /usr/local/lib. Unexpected dylibs: Warning: Unbrewed .la files were found in /usr/local/lib. Unexpected .la files: Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig. Unexpected .pc files: Warning: Unbrewed static libraries were found in /usr/local/lib. Unexpected static libraries: Warning: You have unlinked kegs in your Cellar
|
You should consider removing those files and MacPorts until the |
I uninstalled the libiconv. using this brew uninstall libiconv but it again shows libiconv same error. can you suggest me how to remove those files. |
If i ran this shows this error |
You can remove those files with the |
you mean these two files , is right? |
i ran gcc compile source codes with autoconf, automake implement to xcode |
Sorry, I don't understand. Why are you trying to install |
while i compile gcc source like ......... |
Why don't you compile GCC with |
Homebrew has never had a great story about using libraries it installs, especially keg-only ones, to then build other software outside of Homebrew. See #21129 for another example of this. |
Friendly reminder that we don't package libiconv in core anymore, and the one provided by dupes is of dubious value. |
Note, we can't really provide support for compiling GCC on OS X (outside of Homebrew). Suggest asking in a GCC specific forum. |
i ran this following code
$ brew doctor
Warning: /usr/local/include isn't writable.
This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a brew tries to write a file to this directory, the
install will fail during the link step.
You should probably
chown
/usr/local/includeWarning: /usr/local/lib/pkgconfig isn't writable.
This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a brew tries to write a file to this directory, the
install will fail during the link step.
You should probably
chown
/usr/local/lib/pkgconfigWarning: Some directories in /usr/local/share/locale aren't writable.
This can happen if you "sudo make install" software that isn't managed
by Homebrew. If a brew tries to add locale information to one of these
directories, then the install will fail during the link step.
You should probably
chown
them:Warning: gettext files detected at a system prefix
These files can cause compilation and link failures, especially if they
are compiled with improper architectures. Consider removing these files:
/usr/local/lib/libgettextlib.dylib
/usr/local/lib/libintl.dylib
/usr/local/include/libintl.h
Warning: libiconv files detected at a system prefix other than /usr
Homebrew doesn't provide a libiconv formula, and expects to link against
the system version in /usr. libiconv in other prefixes can cause
compile or link failure, especially if compiled with improper
architectures. OS X itself never installs anything to /usr/local so
it was either installed by a user or some other third party software.
tl;dr: delete these files:
/usr/local/lib/libiconv.dylib
/usr/local/include/iconv.h
Warning: You have MacPorts or Fink installed:
/opt/local/bin/port
This can cause trouble. You don't have to uninstall them, but you may want to
temporarily move them out of the way, e.g.
sudo mv /opt/local ~/macports
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libasprintf.0.dylib
/usr/local/lib/libcharset.1.dylib
/usr/local/lib/libcunit.1.dylib
/usr/local/lib/libgettextlib-0.18.3.dylib
/usr/local/lib/libgettextpo.0.dylib
/usr/local/lib/libgettextsrc-0.18.3.dylib
/usr/local/lib/libiconv.2.dylib
/usr/local/lib/libintl.8.dylib
/usr/local/lib/libjansson.4.dylib
/usr/local/lib/libltdl.7.dylib
/usr/local/lib/libsqlite3.0.dylib
Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .la files:
/usr/local/lib/libasprintf.la
/usr/local/lib/libcharset.la
/usr/local/lib/libcunit.la
/usr/local/lib/libgettextlib.la
/usr/local/lib/libgettextpo.la
/usr/local/lib/libgettextsrc.la
/usr/local/lib/libiconv.la
/usr/local/lib/libintl.la
/usr/local/lib/libjansson.la
/usr/local/lib/libltdl.la
/usr/local/lib/libsqlite3.la
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .pc files:
/usr/local/lib/pkgconfig/cunit.pc
/usr/local/lib/pkgconfig/jansson.pc
/usr/local/lib/pkgconfig/libiconv.pc
/usr/local/lib/pkgconfig/sqlite3.pc
Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected static libraries:
/usr/local/lib/libasprintf.a
/usr/local/lib/libcharset.a
/usr/local/lib/libcunit.a
/usr/local/lib/libgettextpo.a
/usr/local/lib/libintl.a
/usr/local/lib/libjansson.a
/usr/local/lib/libltdl.a
/usr/local/lib/libsqlite3.a
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run
brew link
on these:If i give "brew link libiconv" the following error is
Warning: libiconv is keg-only and must be linked with --force
Note that doing so can interfere with building software.
Can you tell me how to resolve the libiconv missing error. I installed both Manually and via brew. But still get same following error.
still i getting error when i configure the gcc compile codes
...........
checking for libiconv_open in -liconv... no
checking for iconv_open in -lc... no
checking for iconv_open in -liconv... no
configure: error: Could not find libiconv. Please install libiconv and libiconv-devel
Please help me to resolve this. i still break this error upto 2 days. I'm waiting your replies
The text was updated successfully, but these errors were encountered: