Comments (17)
To confirm, the instructions in the comment above worked perfectly for me on a M1 Macbook Pro, running macOS 12.5.1.
I couldn't run ssc uninstall gtools
, which gave the error criterion matches more than one package
. But just reinstalling with net install gtools, from($folder/stata-gtools/build) replace
worked regardless of the existing package, and got the plugin working.
I didn't see any warnings in System Preferences > Security about the plugin being blocked, so I suspect it is just that the Mac is looking for the plugin to be compiled as ARM, and doesn't know to run the Intel plugin with Rosetta emulation.
from stata-gtools.
@austinsmoss I recently found this article on cross-compiling and it worked for another project. Can you re-install gtools from the develop
branch (gtools, upgrade branch(develop)
) and try it out?
from stata-gtools.
@austinsmoss I am kind of aware since someone commented they still had the problem but unfortunately I'm not 100% what to do about it. I should at least make a note of it somewhere, though, so I'll leave this issue open this time. Thankfully compiling on OSX is not too bad; I believe this comment compiles and clarifies the instructions I gave throughout the thread. I repeat here for convenience:
- Build gtools. From the command line (terminal)
git clone https://github.com/mcaceresb/stata-gtools
cd stata-gtools
git submodule update --init --recursive
make clean SPI=3.0 SPIVER=v3
make all SPI=3.0 SPIVER=v3
- Uninstall gtools, if a previous version was present. From Stata,
ssc uninstall gtools
net uninstall gtools
- Install from local folder. From Stata,
net install gtools, from(/path_to_folder_where_gtools_was_compiled/stata-gtools/build) replace
Anyway, the issue is that there was some change either in OSX or with the Apple processors that broke the plugin and since I don't have a mac, I can't debug the issue. I thought compiling with github would help but apparently it's still broken on some systems. I suppose even if I did have a Mac, I don't really know whether my fix would break comparability with older models or OSX versions. There's a similar issue on some Windows servers, if I recall, that is still open (#60) and I don't have Windows hardware, let alone a Windows server.
from stata-gtools.
@austinsmoss Can you share your OS version?
from stata-gtools.
Monterey v 12.5
from stata-gtools.
@austinsmoss If you try to use the original plugin (the one that failed), after you have done so, do you see under " System Preferences > Security & Privacy > General" a note that macOS has blocked the plugin and to allow it to run anyway?
from stata-gtools.
I do not see this option. Would it be useful to Zoom so I can share my screen? If so, shoot me an email at [email protected]
from stata-gtools.
@austinsmoss I am asking because a user of a different plugin recently had this issue after upgrading to the latest macOS, where the system gave the message that the execution of the plugin had been blocked. The solution is for me to sign it (costs $ apparently), for the user to unblock it (in Security and Privacy, hence my question), or for the user to compile (which is what this thread suggests, but I figured unblocking it might be easier).
I do not own a mac, and it's been several years since I used one, so I am not sure if I'd be that helpful even with screen share. I am basing my question off a google search, actually Un_n. Just to be sure, though, you checked after trying to use the plugin file that caused gtools to fail, yes?
from stata-gtools.
Understood. Yes, I uninstalled the working version that I compiled and reinstalled the SSC version. I am not given that error message.
from stata-gtools.
@austinsmoss I am kind of aware since someone commented they still had the problem but unfortunately I'm not 100% what to do about it. I should at least make a note of it somewhere, though, so I'll leave this issue open this time. Thankfully compiling on OSX is not too bad; I believe this comment compiles and clarifies the instructions I gave throughout the thread. I repeat here for convenience:
- Build gtools. From the command line (terminal)
git clone https://github.com/mcaceresb/stata-gtools cd stata-gtools git submodule update --init --recursive make clean SPI=3.0 SPIVER=v3 make all SPI=3.0 SPIVER=v3
- Uninstall gtools, if a previous version was present. From Stata,
ssc uninstall gtools net uninstall gtools
- Install from local folder. From Stata,
net install gtools, from(/path_to_folder_where_gtools_was_compiled/stata-gtools/build) replace
Anyway, the issue is that there was some change either in OSX or with the Apple processors that broke the plugin and since I don't have a mac, I can't debug the issue. I thought compiling with github would help but apparently it's still broken on some systems. I suppose even if I did have a Mac, I don't really know whether my fix would break comparability with older models or OSX versions. There's a similar issue on some Windows servers, if I recall, that is still open (#60) and I don't have Windows hardware, let alone a Windows server.
I followed the instruction, but on the step 3 to install the package locally, it said "option from() incorrectly specified". Can I get more information about how to figure out the correct path to the folder? Thanks!
from stata-gtools.
@annorazhao Where did you clone the repository?
from stata-gtools.
I think is this one from the first thread you posted: https://github.com/mcaceresb/stata-gtools
from stata-gtools.
@annorazhao I meant in your computer. You need to replace the path in from()
with the path in your computer where stata-gtools
was cloned into. So, where is it in your computer?
from stata-gtools.
That is the place I got confused, in my laptop, the packages are installed under /Users/.../Library/Application Support/Stata/ado/plus
, the ssc installed gtools are stored under the subfolder "g", how should I replace the path? Sorry that I'm a novice and know very few about this. Thanks for the help!
from stata-gtools.
That is the place I got confused, in my laptop, the packages are installed under
/Users/.../Library/Application Support/Stata/ado/plus
, the ssc installed gtools are stored under the subfolder "g", how should I replace the path? Sorry that I'm a novice and know very few about this. Thanks for the help!
It seems the SSC version fails on newer OSX systems and you have to compile the plugins yourself. In order to do this, you need to follow the steps here. If you have a gtools
installation under /Users/.../Library/Application Support/Stata/ado/plus
then you have not done step 2.
- If you did step 1, then you should be able to type
pwd
into the the terminal. Copy the output (a directory path will be printed). - If you did step 2, then
gtools
should not be installed in your system. At this point, there shouldn't be anygtools
files in/Users/.../Library/Application Support/Stata/ado/plus/g
. Please check this is the case. - For step 3, you need to copy the path you found in the first bullet and replace
path_to_folder_where_gtools_was_compiled
with that path. The final command will be something likenet install gtools, from(/Users/.../stata-gtools/build) replace
from stata-gtools.
Oh, this time it works! Thanks so much!
from stata-gtools.
@mcaceresb I re-installed from the develop branch and it is working. Great solution!
from stata-gtools.
Related Issues (20)
- gegen total vs. egen total HOT 6
- Could not load gtools_macosx_v3.plugin, error 9999 HOT 9
- gegen normalize does not realize that a new variable shall be created HOT 1
- gunique missing scalars when there are no observations
- gtools version of merge HOT 5
- gtools not installing on macos Stata 16 HOT 3
- Problem with -if- condition in several commands HOT 1
- Please update the benchmark using Stata 17. HOT 5
- gtools 1.8.1 not working *at all* with Stata MP 16.1 on MacOS 11.6 HOT 7
- Plugin download error when using "ssc install gtools" HOT 2
- the option cw in gcollapse is invalid. HOT 2
- Error r(111) in Stata MP 16.1 and SE 17.0, macOS Monterey HOT 4
- OSX plugin fails; move OSX Compilation to github
- gegen max does not properly evaluate string expressions HOT 2
- Error trying to copy gtop.sthlp in Stata 14 HOT 3
- Some commands appear to ignore [w=weights] HOT 3
- Export results to word or excel HOT 4
- Wrong number of groups HOT 1
- Will greshape support strL variabes in the future? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stata-gtools.