I think you need to configure and build your pythia8 libraries adding the --enable-shared option.
--enable-shared
Note also that, for the time being, it seems that there are some problems with ROOT and pythia8.2 so, you’d better start to play with pythia8.1.