Installing "gettext" & "libiconv" errors ...

Joined
May 4, 2010
Messages
33
Reaction score
0
Points
6
Hi, I've been trying to install some libraries and really not sure what I'm trying to do ...

Installing "gettext" I've been getting some strange responses from 'make', and last tried doing "make clean / make distclean" which i'm hoping is for an 'uninstall', then tried again "./configure / make" (with no extra options) and "make check" and have received this error ...

./lang-sh: line 14: prog.sh: Permission denied
prog.sh:12: warning: the syntax $"..." is deprecated due to security reasons; use eval_gettext instead
1c1
< «Votre commande, s'il vous plait», dit le garçon.
---
> ?Votre commande, s'il vous plait?, dit le gar?on.
FAIL: lang-sh
./lang-bash: line 16: prog.sh: Permission denied
1c1
< «Votre commande, s'il vous plait», dit le garçon.
---
> ?Votre commande, s'il vous plait?, dit le gar?on.
FAIL: lang-bash

Also before this I installed "libiconv" with some parameters i have forgotten and not sure i've done that right either, and as mentioned try "gettext" again. But have also noticed some of my documents are looking very strange.

?
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
The easiest way to install libraries (open source ones at least) is to use a package manager such as MacPorts or Homebrew. You'll save yourself a lot of time if you use one of those.
 
OP
C
Joined
May 4, 2010
Messages
33
Reaction score
0
Points
6
The easiest way to install libraries (open source ones at least) is to use a package manager such as MacPorts or Homebrew. You'll save yourself a lot of time if you use one of those.

So I suppose I've made a slight mess :-/ , how can I start over, is using "make clean" & "make distclean" worth doing ?

Installed "Homebrew" & ran 'Doctor' ...

Warning: 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: Some directories in /usr/local/share/man 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: 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.

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.

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.

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.

Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:

iconv
x264
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
So I suppose I've made a slight mess :-/ , how can I start over, is using "make clean" & "make distclean" worth doing ?
If you haven't actually installed anything (make install), everything should still be in the build directory. In other words, files weren't moved so simply delete the source and build directories.

It looks like iconv was installed fine. In fact, I'm guessing that it is what caused all the Homebrew warnings. You can do one of three things: ignore the errors and plow through (not really recommended), uninstall the version of iconv you built or use MacPorts instead.

If you want to uninstall iconv, hope that the developers provided a make uninstall target (not all developers do).
 
OP
C
Joined
May 4, 2010
Messages
33
Reaction score
0
Points
6
If you haven't actually installed anything (make install), everything should still be in the build directory

I tried installing "gettext / libiconv / glib / pkg-config" :-/

"make uninstall" gives "make: *** No rule to make target `uninstall'. Stop."

I will try and do a step by step with Homebrew !, but may need some questions answered ;-p

e.g. how can I chown multiple files ?, as it mentions was probably done with "sudo make ..."
 
OP
C
Joined
May 4, 2010
Messages
33
Reaction score
0
Points
6
Using "sudo brew doctor" does not show the "sudo make" problem. Really not sure why system files / folders would not be protected. Is using "sudo" for 'brew doctor' advised ?
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
You'll have to consult the Homebrew documentation. I've never had any errors before with Homebrew.
 
OP
C
Joined
May 4, 2010
Messages
33
Reaction score
0
Points
6
Carried on using "sudo" and everything is ok so far, 99% removed so no problems reported by 'brew doctor' but one and that's "iconv" ?, I've noticed how sloppy uninstalling is within "usr/local" etc. :-/

oh !, and this ... "/usr/bin occurs before /usr/local/bin"
 
OP
C
Joined
May 4, 2010
Messages
33
Reaction score
0
Points
6
'Brew Doctor' now says "Your system is raring to brew.", but that's still with "sudo". The only other thing is, how to make "/usr/local" for everyone & all sub-directories ? I have used "Finder" with "everyone - read / write" & "apply to enclosed items". Any good ?
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
No, why are you making /usr/local rw for everyone? Don't do that. That's the last thing you want to do.

You don't nee to run brew with elevated privileges. For some reason, homebrew doesn't seem to like it that you installed software manually. Have you tried running it without elevated (sudo) privileges?
 
OP
C
Joined
May 4, 2010
Messages
33
Reaction score
0
Points
6
Have you tried running it without elevated (sudo) privileges?

Still gives the warning (for every everything within the folder) ...

Warning: 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:

Is Homebrew able to be given a specified install, e.g. "brew ... yasm" ?

It's at the point of downloading but is idle :-/ and did have trouble connecting
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
It's designed to run without elevated privileges so no need to use sudo.
Is Homebrew able to be given a specified install, e.g. "brew ... yasm" ?
To install something, use brew install <appname>. If you don't provide a parameter (search, install, etc.), brew will spit back an error. From the sounds of it though, it sounds like you know that so I'm not sure what you're asking here.
 
OP
C
Joined
May 4, 2010
Messages
33
Reaction score
0
Points
6
To install something, use brew install <appname>. If you don't provide a parameter (search, install, etc.), brew will spit back an error. From the sounds of it though, it sounds like you know that so I'm not sure what you're asking here.

I meant something already downloaded ?, as in, have "/yasm..."
 
OP
C
Joined
May 4, 2010
Messages
33
Reaction score
0
Points
6
Also, is there a way to "./configure etc." using Homebrew or is it required to do so manually (providing it doesn't make a mess or reconfigure other options) ?
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
I meant something already downloaded ?, as in, have "/yasm..."
I have no idea what this means.

Not sure why you linked to this.

Also, is there a way to "./configure etc." using Homebrew or is it required to do so manually (providing it doesn't make a mess or reconfigure other options) ?
Not that I know of. The only way to do this that I can think of is to change the formulas manually yourself.
 
OP
C
Joined
May 4, 2010
Messages
33
Reaction score
0
Points
6
Not that I know of. The only way to do this that I can think of is to change the formulas manually yourself.

I looked around the FAQ but I guess I have done it wrong ...

Coffee-Grinders-MacBook:~ coffee$ brew update x264 --enable-mp4-output
Updated Homebrew from 9d915ede to 7f6c9e3b.
==> New Formulae
gtkdatabox klavaro libsmf mpssh scale2x unac
==> Updated Formulae
ffmpeg htop-osx repo youtube-dl
heroku-toolbelt libmagic sonar
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
brew update just updates Homebrew itself - it's not meant to update packages.
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
Not sure - I always stick to the default build options. However, I might have found what you're looking for. If you go to /usr/local/Library/Formula, you can see all the build scripts for each "recipe." You should be able to modify the configure options in there. However, I've never tested that so try that at your own risk.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top