[NH:1]1[CH:5]=CN=C1.[Na].[Br:7][CH2:8][CH2:9][CH2:10][CH2:11][CH2:12][CH2:13][CH:14]=C.[CH3:16][N:17]([CH:19]=O)[CH3:18]>>[BrH:7].[Br:7][CH:8]([CH2:9][CH2:10][CH2:11][CH2:12][CH2:13][CH3:14])[CH2:16][N:17]1[CH:19]=[CH:5][N:1]=[CH:18]1Combine sodium imidazole (5 g) and 8-bromo-1-octene (5 g) in DMF and stir overnight. Partition the reaction product between water and dichloromethane, evaporate the organic layer and purify the resultant residue on a silica gel column. Add the imidazole compound (4.6 g) and phenol (1 g) to dichloromethane (250 ml), saturate the solution with HBr gas and stir for 4 hours. Evaporate the solvent and wash the residue with THF: hexane (1:1) to obtain 1-(2-bromooctyl)imidazole hydrobromide.