Giter VIP home page Giter VIP logo

Comments (9)

florianpeters avatar florianpeters commented on June 20, 2024 6

Magic, it worked! Thanks so much! Big improvement in many functions!

Key is indeed that gtools must be installed from the local folder where you compiled it. So, altogether, in the terminal, I ran:
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

Then in Stata I ran:
ssc uninstall gtools
net install gtools from(/path_to_folder_where_gtools_was_compiled/stata-gtools/build) replace
gtools

... and I get:
Nothing to do. See help gtools or gtools, examples for usage. Version info:
.../Library/Application Support/Stata/ado/plus/g/gtools.ado
*! version 1.7.5 18Apr2020 Mauricio Caceres Bravo, [email protected]
*! Program for managing the gtools package installation
(note: gtools_plugin v1.7.5 successfully loaded)

from stata-gtools.

mcaceresb avatar mcaceresb commented on June 20, 2024 3

@tkemeny You can try compiling gtools yourself, as described here. Be sure to uninstall the version you currently have before you try. You'll need gcc and make, which you can get from xcode last I checked. Then run

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

Then from Stata run

net install gtools, from(/path/to/stata-gtools/build) replace

from stata-gtools.

jdingel avatar jdingel commented on June 20, 2024 1

Just ran into this on a new M1 machine. The installation instructions from @florianpeters solved my problem. There is a missing comma in Florian's net install line, it should say:

 net install gtools, from(/path_to_folder_where_gtools_was_compiled/stata-gtools/build) replace

from stata-gtools.

florianpeters avatar florianpeters commented on June 20, 2024

I have the same issue, ie error message
Could not load plugin: /Users/fpeters/Library/Application Support/Stata/ado/plus/g/gtools_macosx_v3.plugin
(error occurred while loading _gtools_internal.ado)
r(9999);

I'm using a new MacBook Air (M1, 2020) with an Apple M1 chip and Stata MP 17.0.

The file gtools_macosx_v3.plugin is located in the correct folder but cannot be loaded.

I tried to self-compile according to your instructions:
git clone https://github.com/mcaceresb/stata-gtools
cd stata-gtools
git submodule update --init --recursive

Stata 14.1 and later

make clean SPI=3.0 SPIVER=v3
make all SPI=3.0 SPIVER=v3

But the tests (do build/gtools_tests.do) dont pass.

Any idea what could be the problem?

Thanks in advance!

from stata-gtools.

mcaceresb avatar mcaceresb commented on June 20, 2024

@florianpeters There are a few reasons why the tests might not pass. A better first diagnosis is to run

gtools

by itself and see if there is an error. Further, you should be sure to install gtools from the local folder where you compiled it. If there is no error when you run gtools by itself from a Stata prompt, feel free to post the log from the tests to see what went wrong.

from stata-gtools.

dballaelliott avatar dballaelliott commented on June 20, 2024

I had the same issue on an M1 and the manual install florian describes above fixed things for me as well! Thanks Florian!

I might suggest adding a note to this effect to the README in the installation section, as I imagine this will be a common issue for M1 users! Thanks for this great package, Mauricio!

from stata-gtools.

diegojavierjimenez avatar diegojavierjimenez commented on June 20, 2024

Same issue (M1 machine, same error), same solution as @florianpeters @jdingel. Thanks for that!

from stata-gtools.

mcaceresb avatar mcaceresb commented on June 20, 2024

Should be fixed in 6dc0fd6. OSX plugin compilation moved to github actions with latest os version.

from stata-gtools.

Nanoochoa avatar Nanoochoa commented on June 20, 2024

I had the same issue today with an M1 machine. Even with the last version https://github.com/mcaceresb/stata-gtools/commit/6dc0fd6bbcc19e6f41f1095ffeaac39a51b7283f, but the fix here works! :)

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.