A system for attaching a gutter profile (2) and a rod (4) of a greenhouse to each other comprises a gutter profile (2) which is made of extruded aluminium and is provided with a through-hole (9) in a wall thereof, a rod (4) which is made of extruded aluminium and which is mountable to the gutter profile (2) such that in a mounted condition the rod (4) is supported by the gutter profile (2) and extends transversely with respect to the gutter profile (2), and a rigid locking element (5) for interlocking the rod (4) and the gutter profile (2) in longitudinal direction of the gutter profile (2). The locking element (5) comprises a protruding portion (6) which fits in the through-hole (9) and a fixation portion (7) which is attachable to an end portion of the rod (4). In the mounted condition the protruding portion (6) extends through the through-hole (9).