Giter VIP home page Giter VIP logo

Comments (17)

chisquared avatar chisquared commented on July 2, 2024 1

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.

mcaceresb avatar mcaceresb commented on July 2, 2024 1

@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.

mcaceresb avatar mcaceresb commented on July 2, 2024

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

  1. 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
  1. Uninstall gtools, if a previous version was present. From Stata,
ssc uninstall gtools
net uninstall gtools
  1. 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.

mcaceresb avatar mcaceresb commented on July 2, 2024

@austinsmoss Can you share your OS version?

from stata-gtools.

austinsmoss avatar austinsmoss commented on July 2, 2024

Monterey v 12.5

from stata-gtools.

mcaceresb avatar mcaceresb commented on July 2, 2024

@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.

austinsmoss avatar austinsmoss commented on July 2, 2024

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.

mcaceresb avatar mcaceresb commented on July 2, 2024

@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.

austinsmoss avatar austinsmoss commented on July 2, 2024

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.

annorazhao avatar annorazhao commented on July 2, 2024

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

  1. 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
  1. Uninstall gtools, if a previous version was present. From Stata,
ssc uninstall gtools
net uninstall gtools
  1. 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.

mcaceresb avatar mcaceresb commented on July 2, 2024

@annorazhao Where did you clone the repository?

from stata-gtools.

annorazhao avatar annorazhao commented on July 2, 2024

I think is this one from the first thread you posted: https://github.com/mcaceresb/stata-gtools

from stata-gtools.

mcaceresb avatar mcaceresb commented on July 2, 2024

@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.

annorazhao avatar annorazhao commented on July 2, 2024

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.

mcaceresb avatar mcaceresb commented on July 2, 2024

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 any gtools 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 like net install gtools, from(/Users/.../stata-gtools/build) replace

from stata-gtools.

annorazhao avatar annorazhao commented on July 2, 2024

Oh, this time it works! Thanks so much!

from stata-gtools.

austinsmoss avatar austinsmoss commented on July 2, 2024

@mcaceresb I re-installed from the develop branch and it is working. Great solution!

from stata-gtools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.