。
Fame isn't necessarily a byproduct of success.
Literal
Fame [topic-は] necessarily success [to-に] attached-thing [quotative-という] not-the-case-[わけではない].
必ずしも...ではない = 'not necessarily.' A set pair: 必ずしも always co-occurs with a negated predicate. ~わけではない ('it doesn't mean that, it's not the case that') is a nuanced negation — denying a stronger claim. 付き物 = 'thing that goes with, inseparable accompaniment.' A thoughtful philosophical observation.