Comments (13)
By the way, don't update the plugin. I have added new commands and this broke the legacy compatibility I added here. I'm reopening the issue until I figure out a fix for the new commands as well.
from stata-gtools.
Whether or not Stata is MP should be irrelevant for this. From a terminal on linux, what is the output of
ldconfig -p | grep libgomp
echo $LD_LIBRARY_PATH
from stata-gtools.
-bash: ldconfig: command not found
I would need to contact the system admin (it's a server) in case this is required.
from stata-gtools.
Try these:
locate libgomp
whereis libgomp.so
whereis libgomp.so.1
If it exists in your system, it may also be named libgomp.so.1.0
or libgomp.so.1.0.0
so try searching for them as well. Let me know if any of these commands fail.
from stata-gtools.
Output of locate libgomp
/usr/lib/gcc/x86_64-linux-gnu/4.7/libgomp.a
/usr/lib/gcc/x86_64-linux-gnu/4.7/libgomp.so
/usr/lib/gcc/x86_64-linux-gnu/4.7/libgomp.spec
/usr/lib/x86_64-linux-gnu/libgomp.so.1
/usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0
/usr/share/doc/libgomp1
/usr/share/doc/gcc-4.7-base/test-summaries/libgomp.sum.gz
/var/lib/dpkg/info/libgomp1:amd64.list
/var/lib/dpkg/info/libgomp1:amd64.md5sums
/var/lib/dpkg/info/libgomp1:amd64.postinst
/var/lib/dpkg/info/libgomp1:amd64.postrm
/var/lib/dpkg/info/libgomp1:amd64.shlibs
/var/lib/dpkg/info/libgomp1:amd64.symbols
The output of the various whereis
commands is always empty.
from stata-gtools.
I see. Can you try
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
stata
and then, from the stata command prompt,
sysuse auto
gcollapse mpg, by(foreign) verbose
And let me know the output? This may be an issue with stata being unable to find libgomp, which the plugin uses for parallelism. If this works, there may be a simple solution so you don't have to run this every time. Let me know.
from stata-gtools.
from stata-gtools.
Apologies for the tardiness debugging. I just tried this on a fresh Linux install and it worked. I have to assume it has to do with one of the following:
- OS
- Version
- Processor
I will try to replicate your situation more closely. Can you run and paste the output of
cat /etc/*release*
uname -a
lscpu
from stata-gtools.
PRETTY_NAME="Debian GNU/Linux 7 (wheezy)"
NAME="Debian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support/"
BUG_REPORT_URL="http://bugs.debian.org/"
3.2.0-4-amd64 #1 SMP Debian 3.2.81-2 x86_64 GNU/Linux
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 32
On-line CPU(s) list: 0-31
Thread(s) per core: 2
Core(s) per socket: 8
Socket(s): 2
NUMA node(s): 2
Vendor ID: GenuineIntel
CPU family: 6
Model: 62
Stepping: 4
CPU MHz: 3300.402
BogoMIPS: 6599.92
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 25600K
NUMA node0 CPU(s): 0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30
NUMA node1 CPU(s): 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31
from stata-gtools.
I was able to reproduce the bug. It seems it's just a versioning issue, but all the functionality appears to be compatible.
Can you try the latest development branch version? I have added a version of the plugin that uses an older version of libgomp.
net install gtools, from(https://raw.githubusercontent.com/mcaceresb/stata-gtools/develop/build/)
sysuse auto
gcollapse mpg, by(foreign) verbose
from stata-gtools.
Actually, do not use the plugin just yet. It seems there is another problem with using the plugin on an older OS. The hashing function does not actually work and it will cause a segmentation fault (crash).
Integers are fine because they are not hashed, but anything other than integers is causing a crash for me. Can you run:
sysuse auto
gcollapse mpg, by(headroom make) verbose
I expect it will cause a crash. Let me know if it does.
from stata-gtools.
Can you try again? Latest dev and using headroom make
? It no longer crashes for me (version 0.6.14
)
net install gtools, from(https://raw.githubusercontent.com/mcaceresb/stata-gtools/develop/build/)
sysuse auto
gcollapse mpg, by(headroom make) verbose
from stata-gtools.
Now it works indeed! Thanks a lot for the support Mauricio, keep up the great work!
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 4
- 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.