Linux

If you can't run symbolic computation on Matlab for Linux

Forrest Sheng Bao http://fsbao.net

Maybe you encountered a problem saying "version GLIBC_2.0 not defined in file libc.so.6". Like this log:

LabVIEW 8.6 installation on Ubuntu Linux 8.10

Forrest Sheng Bao http://fsbao.net

Tested on Ubuntu 8.10 with LabVIEW 8.6 for Linux

libtiff.so.3 error, FreeSurfer on Ubuntu 6.06

When I plan to use tkmedit and tksurfer, components of freesurfer, the program said libtiff.so.3 can't be found

To solve this problem, it is very easy by executing following commands:

cd /usr/lib
ln -s libtiff.so.4 libtiff.so.3

the device named ``random" on Linux

#include unistd.h
#include fcntl.h
#include stdio.h
#include stdlib.h
#include time.h 
int main(void) 
{
     int i,j,randomfd; 
     int rand[100];  
     for(i=0;i<10;i++)
    {   
          srand(time(NULL)+getpid()); 
          printf("%d ",rand()); //}   
          printf("\n"); 
          randomfd=open("/dev/random",O_RDONLY); 
          if(!randomfd)  
                 

link to libraries programmed by yourself

cc -O2 -g -Wall -c parapin.c
ar -cr libparapin.a parapin.o
cc -O2 -g -Wall -I. -L. examples/inputtest.c -o examples/inputtest -lparapin
cc -O2 -g -Wall -I. -L. examples/outputtest.c -o examples/outputtest -lparapin
cc -O2 -g -Wall -I. -L. examples/adc0831.c -o examples/adc0831 -lparapin
cc -O2 -g -Wall -I. -L. examples/ppdrv-test.c -o examples/ppdrv-test -lparapin

Syndicate content