Comments (9)
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.
@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.
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.
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.
@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.
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.
Same issue (M1 machine, same error), same solution as @florianpeters @jdingel. Thanks for that!
from stata-gtools.
Should be fixed in 6dc0fd6. OSX plugin compilation moved to github actions with latest os version.
from stata-gtools.
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)
- gegen total vs. egen total HOT 6
- 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
- Could not load gtools_macosx_v3.plugin, error 9999 HOT 17
- 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.